diff options
author | Inki Dae <inki.dae@samsung.com> | 2012-02-15 11:25:20 +0900 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-16 09:40:50 +0000 |
commit | c5614ae326c7fdd244d8e0365b8b78d5e3cd5bf4 (patch) | |
tree | 3e3a21cff4a79e6f701354b48c5b4a650361f5f4 /drivers/gpu/drm/exynos/exynos_drm_crtc.c | |
parent | d081f5660422270856b77bcbbaa312138f556c9e (diff) | |
download | op-kernel-dev-c5614ae326c7fdd244d8e0365b8b78d5e3cd5bf4.zip op-kernel-dev-c5614ae326c7fdd244d8e0365b8b78d5e3cd5bf4.tar.gz |
drm/exynos: fixed page flip issue.
with vblank_refcount = 1, there was the case that drm_vblank_put
is called by specific page flip function so this patch fixes the
issue.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_crtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index e3861ac..de81883 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c @@ -307,9 +307,6 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc, */ event->pipe = exynos_crtc->pipe; - list_add_tail(&event->base.link, - &dev_priv->pageflip_event_list); - ret = drm_vblank_get(dev, exynos_crtc->pipe); if (ret) { DRM_DEBUG("failed to acquire vblank counter\n"); @@ -318,6 +315,9 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc, goto out; } + list_add_tail(&event->base.link, + &dev_priv->pageflip_event_list); + crtc->fb = fb; ret = exynos_drm_crtc_update(crtc); if (ret) { |