diff options
author | Mario Kleiner <mario.kleiner.de@gmail.com> | 2013-10-30 04:13:07 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-06 01:53:42 (GMT) |
commit | d47abc585d26ce48e31a3b77d6414f507c5e9519 (patch) | |
tree | 0db7c68389c8d8a7f688482a08870901d956df37 /drivers/gpu/drm/radeon/radeon_mode.h | |
parent | 8f6fce03ddaf10bfa40c7d6cd59b778d35d41800 (diff) | |
download | linux-d47abc585d26ce48e31a3b77d6414f507c5e9519.tar.xz |
drm/radeon: Push get_scanout_position() timestamping into kms driver.
Move the ktime_get() clock readouts and potential preempt_disable()
calls from drm core into kms driver to make it compatible with the
api changes in the drm core.
This should not introduce any change in functionality or behaviour
in radeon-kms, just a reshuffling of code.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mode.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 8b4e712..3f0dd66 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h @@ -766,7 +766,8 @@ extern int radeon_crtc_cursor_move(struct drm_crtc *crtc, int x, int y); extern int radeon_get_crtc_scanoutpos(struct drm_device *dev, int crtc, - int *vpos, int *hpos); + int *vpos, int *hpos, ktime_t *stime, + ktime_t *etime); extern bool radeon_combios_check_hardcoded_edid(struct radeon_device *rdev); extern struct edid * |