diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2012-02-13 20:59:43 -0500 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-02-14 20:29:11 -0500 |
commit | a04afc1db975ae94f721bc3b3bf65d1d3cf1dfba (patch) | |
tree | 61a38a89317ee98a1ba0efc280d4e8e86e72f975 /drivers/gpu | |
parent | 9f9dee586c0a88c988a8677c2d361178f571f43b (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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.c | 10 |
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 35889ca255e..2ef12aa3030 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 | ||
143 | static void exynos_drm_preclose(struct drm_device *dev, | 143 | static 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 | ||
156 | static void exynos_drm_lastclose(struct drm_device *dev) | 150 | static void exynos_drm_lastclose(struct drm_device *dev) |