From: Archit Taneja Date: Fri, 11 Apr 2014 07:23:35 +0000 (+0530) Subject: drm/omap: protect omap_crtc's event with event_lock spinlock X-Git-Tag: omap-for-v3.16/pm-signed~75^2~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38e5597a03d2d1499a785230031c4f48e1d9c6b7;p=pandora-kernel.git 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 Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed