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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
Laurent Pinchart
2016-04-19 03:07:59 +03:00
parent 80f91bffb7
commit 84e1d4578f
2 changed files with 24 additions and 21 deletions

View File

@@ -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 */