summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungJun Cho <yj44.cho@samsung.com>2014-10-23 15:56:21 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:01:04 +0900
commit5ee187c042c420934ed721864885784313a515da (patch)
treed429f953a24bbff0e1d126d3e365bc3505fe90d2
parenta45f790346bef8c376d25f09095caf798f0640cc (diff)
downloadlinux-3.10-5ee187c042c420934ed721864885784313a515da.tar.gz
linux-3.10-5ee187c042c420934ed721864885784313a515da.tar.bz2
linux-3.10-5ee187c042c420934ed721864885784313a515da.zip
drm/exynos: fimd: move handle vblank position in TE handler
For providing VBLANK information, drm_handle_vblank() should be called properly, but it is blocked by wait_vsync_event condition which is set by manager_ops->wait_for_vblank(). So moves it out from wait_vsync_event routine. Change-Id: Id5fc56f65d582fd90ef261f50b302f12ef890353 Signed-off-by: YoungJun Cho <yj44.cho@samsung.com> Acked-by: Inki Dae <inki.dae@samsung.com> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fimd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index e7cc2ab311a..7b3cd830cf2 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -1003,11 +1003,11 @@ static int fimd_te_handler(struct exynos_drm_manager *mgr)
if (atomic_read(&ctx->wait_vsync_event)) {
atomic_set(&ctx->wait_vsync_event, 0);
wake_up(&ctx->wait_vsync_queue);
-
- if (!atomic_read(&ctx->triggering))
- drm_handle_vblank(ctx->drm_dev, ctx->pipe);
}
+ if (!atomic_read(&ctx->triggering))
+ drm_handle_vblank(ctx->drm_dev, ctx->pipe);
+
return 0;
}