diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-11-28 07:34:16 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-03-24 07:50:58 -0400 |
commit | 8519c62ce610e512722d1d8e3991c02cca59010c (patch) | |
tree | 295ecfec4a5c6c6d3d95213650a8735d32eccd06 | |
parent | ef4222838846fdecb6f1eae5671d9c462fd34852 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_irq.c b/drivers/gpu/drm/omapdrm/omap_irq.c index f035d2bceae7..3eb097efc488 100644 --- a/drivers/gpu/drm/omapdrm/omap_irq.c +++ b/drivers/gpu/drm/omapdrm/omap_irq.c | |||
@@ -34,7 +34,7 @@ static void omap_irq_update(struct drm_device *dev) | |||
34 | struct omap_drm_irq *irq; | 34 | struct omap_drm_irq *irq; |
35 | uint32_t irqmask = priv->vblank_mask; | 35 | uint32_t irqmask = priv->vblank_mask; |
36 | 36 | ||
37 | BUG_ON(!spin_is_locked(&list_lock)); | 37 | assert_spin_locked(&list_lock); |
38 | 38 | ||
39 | list_for_each_entry(irq, &priv->irq_list, node) | 39 | list_for_each_entry(irq, &priv->irq_list, node) |
40 | irqmask |= irq->irqmask; | 40 | irqmask |= irq->irqmask; |