OSDN Git Service

drm: omapdrm: Use a spinlock to protect the CRTC pending flag
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 18 Apr 2016 22:31:21 +0000 (01:31 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 19 Dec 2016 09:25:00 +0000 (11:25 +0200)
commitd173d3dc5e41af969c1b230a3a6357e51b9baaeb
treebb12d342fc68b5903de122dd64e5a6c6673db0e1
parent577d3983c87a1bf47c4e761df3ba2b9c36229c8e
drm: omapdrm: Use a spinlock to protect the CRTC pending flag

The CRTC pending flag will need to be accessed atomically in the vblank
interrupt handler, memory barriers won't be enough to protect it. Use a
spinlock instead.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c