[PATCH 3/3] msm: 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. > Thanks, I have this queu

[PATCH 3/3] msm: 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/msm/mdp/mdp_kms.c | 2 +- 1 file changed, 1 in