]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: protect omap_crtc's event with event_lock spinlock
authorArchit Taneja <archit@ti.com>
Fri, 11 Apr 2014 07:23:35 +0000 (12:53 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Apr 2014 10:35:29 +0000 (13:35 +0300)
commit1419d5eabcfa321be62c96ca75502dfaefa38668
treefd4a2119b76eee7a9b1deb66c7114f5216af0c13
parentf9384b78c7d7c2847fefed43b7218bf9574805a2
drm/omap: protect omap_crtc's event with event_lock spinlock

The vblank_cb callback and the page_flip ioctl can occur together in different
CPU contexts. vblank_cb uses takes tje drm device's event_lock spinlock when
sending the vblank event and updating omap_crtc->event and omap_crtc->od_fb.

Use the same spinlock in page_flip, to make sure the above omap_crtc parameters
are configured sequentially.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c