]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: modify wait_for_vblank of fimd
authorPrathyush K <prathyush.k@samsung.com>
Thu, 6 Dec 2012 14:46:04 +0000 (20:16 +0530)
committerInki Dae <daeinki@gmail.com>
Thu, 13 Dec 2012 14:05:44 +0000 (06:05 -0800)
commite7be5a24329438c15f9052918cf5c8f2a793478a
tree7dc50722fc164bd06c223244cf69e74877d00a38
parent5c9f06a4a67736ab104129eb5a759ef143b61dff
drm/exynos: modify wait_for_vblank of fimd

It is more optimium to use wait queues while waiting for vsync so
that the current task is put to sleep. This way, the task wont
hog the CPU while waiting. We use wait_event_timeout and not
an interruptible function since we dont want the function to exit
when a signal is pending (e.g. drm release). This patch modifies
the wait for vblank function of fimd.

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c