drm/msm: Do not BUG_ON(!spin_is_locked()) on UP
authorBruno Prémont <bonbons@linux-vserver.org>
Sun, 21 Dec 2014 16:43:44 +0000 (17:43 +0100)
committerRob Clark <robdclark@gmail.com>
Sun, 1 Feb 2015 20:30:25 +0000 (15:30 -0500)
commit925c1e7f716e14c848676ff70a442fe9e80d6e75
treeb94f706412df0019e641488d02903ba7cb89d879
parent475ac0a13dfe108b80fbb89f54414de1a07a0d25
drm/msm: Do not BUG_ON(!spin_is_locked()) on UP

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 <bonbons@linux-vserver.org>
[robclark: drop stray ')']
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp_kms.c