]> 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)
commitee83fbb05159c6b08f5f31f21b163575e93af10b
tree7dc50722fc164bd06c223244cf69e74877d00a38
parentd3ac6b3bda5b8c87100926f79a920bde3b0071b5
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