diff options
author | Rob Clark <rob@ti.com> | 2012-10-08 23:50:41 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-05-22 03:13:40 +0400 |
commit | 95d38d144ab4520aea3f8fcfacc5fd62d3bf2697 (patch) | |
tree | c41c687a9173d40bfa38e91741ee8a96314b8dc0 /drivers/gpu | |
parent | a3f6902672c9fa3868722ef6ab8a7dd9141def6a (diff) | |
download | linux-95d38d144ab4520aea3f8fcfacc5fd62d3bf2697.tar.xz |
drm/nouveau: use drm_send_vblank_event() helper
Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_display.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index 7bf22d4a3d96..f17dc2ab03ec 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -638,17 +638,8 @@ nouveau_finish_page_flip(struct nouveau_channel *chan, } s = list_first_entry(&fctx->flip, struct nouveau_page_flip_state, head); - if (s->event) { - struct drm_pending_vblank_event *e = s->event; - struct timeval now; - - do_gettimeofday(&now); - e->event.sequence = 0; - e->event.tv_sec = now.tv_sec; - e->event.tv_usec = now.tv_usec; - list_add_tail(&e->base.link, &e->base.file_priv->event_list); - wake_up_interruptible(&e->base.file_priv->event_wait); - } + if (s->event) + drm_send_vblank_event(dev, -1, s->event); list_del(&s->head); if (ps) |