Commit c5cca97f authored by Rob Clark's avatar Rob Clark Committed by Inki Dae

drm/exynos: use drm_send_vblank_event() helper

Rebased.
Signed-off-by: default avatarRob Clark <rob@ti.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 94d019b8
...@@ -397,7 +397,6 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc) ...@@ -397,7 +397,6 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)
{ {
struct exynos_drm_private *dev_priv = dev->dev_private; struct exynos_drm_private *dev_priv = dev->dev_private;
struct drm_pending_vblank_event *e, *t; struct drm_pending_vblank_event *e, *t;
struct timeval now;
unsigned long flags; unsigned long flags;
DRM_DEBUG_KMS("%s\n", __FILE__); DRM_DEBUG_KMS("%s\n", __FILE__);
...@@ -410,13 +409,8 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc) ...@@ -410,13 +409,8 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)
if (crtc != e->pipe) if (crtc != e->pipe)
continue; continue;
do_gettimeofday(&now); list_del(&e->base.link);
e->event.sequence = 0; drm_send_vblank_event(dev, -1, e);
e->event.tv_sec = now.tv_sec;
e->event.tv_usec = now.tv_usec;
list_move_tail(&e->base.link, &e->base.file_priv->event_list);
wake_up_interruptible(&e->base.file_priv->event_wait);
drm_vblank_put(dev, crtc); drm_vblank_put(dev, crtc);
} }
......
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