]> 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)
commitad5688b56d0ead152f38105f8e06daef11026123
tree00eeee96c1b2055ddf56accaa4ca737e71c32daf
parentae6d9289cc3e46e46cc28eb9677c5ac3c5911f85
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