[PATCH 2/3] omap: Do not BUG_ON(!spin_is_locked()) on UP

2014-12-23 Thread Ben Skeggs
On 23 Dec 2014 00:27, "Bruno Prémont" wrote: > > On Mon, 22 Dec 2014 08:46:48 -0500 Rob Clark wrote: > > On Sun, Dec 21, 2014 at 11:43 AM, Bruno Prémont wrote: > > > On !SMP systems spinlocks do not exist. Thus checking of they > > > are active will always fail. > > > > > > Use > > > assert_sp

[PATCH 2/3] omap: Do not BUG_ON(!spin_is_locked()) on UP

2014-12-22 Thread Bruno Prémont
On Mon, 22 Dec 2014 08:46:48 -0500 Rob Clark wrote: > On Sun, Dec 21, 2014 at 11:43 AM, Bruno Prémont wrote: > > On !SMP systems spinlocks do not exist. Thus checking of they > > are active will always fail. > > > > Use > > assert_spin_locked(lock); > > instead of > > BUG_ON(!spin_is_locked(lo

[PATCH 2/3] omap: Do not BUG_ON(!spin_is_locked()) on UP

2014-12-22 Thread Rob Clark
On Sun, Dec 21, 2014 at 11:43 AM, Bruno Prémont wrote: > On !SMP systems spinlocks do not exist. Thus checking of they > are active will always fail. > > Use > assert_spin_locked(lock); > instead of > BUG_ON(!spin_is_locked(lock)); > to not BUG() on all UP systems. > > Signed-off-by: Bruno Pr

[PATCH 2/3] omap: Do not BUG_ON(!spin_is_locked()) on UP

2014-12-21 Thread Bruno Prémont
On !SMP systems spinlocks do not exist. Thus checking of they are active will always fail. Use assert_spin_locked(lock); instead of BUG_ON(!spin_is_locked(lock)); to not BUG() on all UP systems. Signed-off-by: Bruno Prémont --- drivers/gpu/drm/omapdrm/omap_irq.c | 2 +- 1 file changed, 1 i