aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_drv.h
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2016-04-19 00:07:59 +0000
committerLaurent Pinchart <[email protected]>2016-12-19 09:25:04 +0000
commit84e1d4578fe9de486b367cc22a405f4a299ab17c (patch)
tree9011bc8711fd0bf6836bfb55fb009552c9285437 /drivers/gpu/drm/omapdrm/omap_drv.h
parentdrm: omapdrm: Simplify IRQ wait implementation (diff)
downloadkernel-84e1d4578fe9de486b367cc22a405f4a299ab17c.tar.gz
kernel-84e1d4578fe9de486b367cc22a405f4a299ab17c.zip
drm: omapdrm: Remove global variables
Move the list of pending IRQ wait instances to the omap_drm_private structure and the wait queue head to the IRQ wait structure. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_drv.h')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_drv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.h b/drivers/gpu/drm/omapdrm/omap_drv.h
index 8ef7e8963bd9..b20377efd01b 100644
--- a/drivers/gpu/drm/omapdrm/omap_drv.h
+++ b/drivers/gpu/drm/omapdrm/omap_drv.h
@@ -88,7 +88,8 @@ struct omap_drm_private {
struct drm_property *zorder_prop;
/* irq handling: */
- struct list_head wait_list; /* list of omap_irq_wait */
+ spinlock_t wait_lock; /* protects the wait_list */
+ struct list_head wait_list; /* list of omap_irq_wait */
uint32_t irq_mask; /* enabled irqs in addition to wait_list */
/* atomic commit */