]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos/vidi: use timer for vblanks instead of sleeping worker
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 23 Sep 2016 08:15:23 +0000 (10:15 +0200)
committerInki Dae <daeinki@gmail.com>
Fri, 30 Sep 2016 15:39:35 +0000 (00:39 +0900)
commit8574e927b4818320257d8b965fb7e0b832532aff
tree00eeee96c1b2055ddf56accaa4ca737e71c32daf
parent61865b5d4db1f3814385ead23f04dc2b014ba6ff
drm/exynos/vidi: use timer for vblanks instead of sleeping worker

VIDI driver uses fake vblank handler to generate vblank events.
It was implemented using worker which slept for vblank time, additionally
it did not work if there were no page flips. The patch replaces it with
timer, uses drm_crtc_vblank_(on|off) helpers to manage it and fixes
behavior for non-page-flip cases.
This change allows further improvements of vblank in exynos-drm framework.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_vidi.c