drm/omap: do not use BUG_ON(!spin_is_locked(x))
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 28 Nov 2014 12:34:16 +0000 (14:34 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 24 Mar 2015 11:50:58 +0000 (13:50 +0200)
spin_is_locked(x) returns always 0 on uniprocessor, triggering BUG() in
omapdrm.

Change it to use assert_spin_locked() to fix the issue.

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

index f035d2bceae7db358427c689b3a1fdd6cde28334..3eb097efc488476e80b691ef4c6e305520b8186e 100644 (file)
@@ -34,7 +34,7 @@ static void omap_irq_update(struct drm_device *dev)
        struct omap_drm_irq *irq;
        uint32_t irqmask = priv->vblank_mask;
 
-       BUG_ON(!spin_is_locked(&list_lock));
+       assert_spin_locked(&list_lock);
 
        list_for_each_entry(irq, &priv->irq_list, node)
                irqmask |= irq->irqmask;