aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2012-02-14 21:25:18 -0500
committerDave Airlie <airlied@redhat.com>2012-02-16 04:40:44 -0500
commit6f811502a473a32a9b892fb35d77b8f91dc7484c (patch)
treeabb55be5f1b70e29179311cd4a8cc4fd7577fb64
parent44a0e022b86a8c12ed06c02f52045c8f9f118bb1 (diff)
drm/exynos: removed pageflip_event_list init code when closed.
if one process is terminated by ctrl-c while two processes are using pageflip feature then for last pageflip event, user can't get poll from kernel side so this patch fixes the problem. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyoungmin Park <kyungmin.park@samsung.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 35889ca255e9..2ef12aa30303 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -141,16 +141,10 @@ static int exynos_drm_unload(struct drm_device *dev)
141} 141}
142 142
143static void exynos_drm_preclose(struct drm_device *dev, 143static void exynos_drm_preclose(struct drm_device *dev,
144 struct drm_file *file_priv) 144 struct drm_file *file)
145{ 145{
146 struct exynos_drm_private *dev_priv = dev->dev_private; 146 DRM_DEBUG_DRIVER("%s\n", __FILE__);
147 147
148 /*
149 * drm framework frees all events at release time,
150 * so private event list should be cleared.
151 */
152 if (!list_empty(&dev_priv->pageflip_event_list))
153 INIT_LIST_HEAD(&dev_priv->pageflip_event_list);
154} 148}
155 149
156static void exynos_drm_lastclose(struct drm_device *dev) 150static void exynos_drm_lastclose(struct drm_device *dev)