Commit 45a066eb authored by Rob Clark's avatar Rob Clark Committed by Daniel Vetter

drm/i915: use drm_send_vblank_event() helper

Signed-off-by: default avatarRob Clark <rob@ti.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent b5c62158
...@@ -6921,8 +6921,6 @@ static void do_intel_finish_page_flip(struct drm_device *dev, ...@@ -6921,8 +6921,6 @@ static void do_intel_finish_page_flip(struct drm_device *dev,
struct intel_crtc *intel_crtc = to_intel_crtc(crtc); struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
struct intel_unpin_work *work; struct intel_unpin_work *work;
struct drm_i915_gem_object *obj; struct drm_i915_gem_object *obj;
struct drm_pending_vblank_event *e;
struct timeval tvbl;
unsigned long flags; unsigned long flags;
/* Ignore early vblank irqs */ /* Ignore early vblank irqs */
...@@ -6938,17 +6936,8 @@ static void do_intel_finish_page_flip(struct drm_device *dev, ...@@ -6938,17 +6936,8 @@ static void do_intel_finish_page_flip(struct drm_device *dev,
intel_crtc->unpin_work = NULL; intel_crtc->unpin_work = NULL;
if (work->event) { if (work->event)
e = work->event; drm_send_vblank_event(dev, intel_crtc->pipe, work->event);
e->event.sequence = drm_vblank_count_and_time(dev, intel_crtc->pipe, &tvbl);
e->event.tv_sec = tvbl.tv_sec;
e->event.tv_usec = tvbl.tv_usec;
list_add_tail(&e->base.link,
&e->base.file_priv->event_list);
wake_up_interruptible(&e->base.file_priv->event_wait);
}
drm_vblank_put(dev, intel_crtc->pipe); drm_vblank_put(dev, intel_crtc->pipe);
......
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