Skip to content

Commit

Permalink
drm/omap: do not use BUG_ON(!spin_is_locked(x))
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomi Valkeinen committed Mar 24, 2015
1 parent ef42228 commit 8519c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/omapdrm/omap_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8519c62

Please sign in to comment.