Skip to content

Commit

Permalink
drm/i915: use drm_send_vblank_event() helper
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Rob Clark authored and Daniel Vetter committed Nov 21, 2012
1 parent b5c6215 commit 45a066e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_unpin_work *work;
struct drm_i915_gem_object *obj;
struct drm_pending_vblank_event *e;
struct timeval tvbl;
unsigned long flags;

/* Ignore early vblank irqs */
Expand All @@ -6938,17 +6936,8 @@ static void do_intel_finish_page_flip(struct drm_device *dev,

intel_crtc->unpin_work = NULL;

if (work->event) {
e = 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);
}
if (work->event)
drm_send_vblank_event(dev, intel_crtc->pipe, work->event);

drm_vblank_put(dev, intel_crtc->pipe);

Expand Down

0 comments on commit 45a066e

Please sign in to comment.