drm/omap: do not use BUG_ON(!spin_is_locked(x))

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>
This commit is contained in:
Tomi Valkeinen 2014-11-28 14:34:16 +02:00
parent ef42228388
commit 8519c62ce6

View File

@ -34,7 +34,7 @@ static void omap_irq_update(struct drm_device *dev)
struct omap_drm_irq *irq; struct omap_drm_irq *irq;
uint32_t irqmask = priv->vblank_mask; 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) list_for_each_entry(irq, &priv->irq_list, node)
irqmask |= irq->irqmask; irqmask |= irq->irqmask;