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

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 mixer.

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