aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Kleiner <mario.kleiner@tuebingen.mpg.de>2010-11-21 10:59:03 -0500
committerDave Airlie <airlied@redhat.com>2010-11-21 20:51:34 -0500
commitb6724405bc67ef3ae1318002085cde382b12345f (patch)
tree14cb53b0aa70764789214e4260ed7f4a8fa5c4d5
parent3e4ea7421f45966c93c8cbe81569e8dc93a58b87 (diff)
drm/kms/radeon: Use high precision timestamps for pageflip completion events.
Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de> Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index f6493f444faa..15f24f2ee04d 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -259,8 +259,7 @@ void radeon_crtc_handle_flip(struct radeon_device *rdev, int crtc_id)
259 /* wakeup userspace */ 259 /* wakeup userspace */
260 if (work->event) { 260 if (work->event) {
261 e = work->event; 261 e = work->event;
262 do_gettimeofday(&now); 262 e->event.sequence = drm_vblank_count_and_time(rdev->ddev, crtc_id, &now);
263 e->event.sequence = drm_vblank_count(rdev->ddev, radeon_crtc->crtc_id);
264 e->event.tv_sec = now.tv_sec; 263 e->event.tv_sec = now.tv_sec;
265 e->event.tv_usec = now.tv_usec; 264 e->event.tv_usec = now.tv_usec;
266 list_add_tail(&e->base.link, &e->base.file_priv->event_list); 265 list_add_tail(&e->base.link, &e->base.file_priv->event_list);