Commit 95d38d14 authored by Rob Clark's avatar Rob Clark Committed by Dave Airlie

drm/nouveau: use drm_send_vblank_event() helper

Signed-off-by: default avatarRob Clark <rob@ti.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent a3f69026
...@@ -638,17 +638,8 @@ nouveau_finish_page_flip(struct nouveau_channel *chan, ...@@ -638,17 +638,8 @@ nouveau_finish_page_flip(struct nouveau_channel *chan,
} }
s = list_first_entry(&fctx->flip, struct nouveau_page_flip_state, head); s = list_first_entry(&fctx->flip, struct nouveau_page_flip_state, head);
if (s->event) { if (s->event)
struct drm_pending_vblank_event *e = s->event; drm_send_vblank_event(dev, -1, 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);
}
list_del(&s->head); list_del(&s->head);
if (ps) if (ps)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment