Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ff4c0d52 authored by Bruno Prémont's avatar Bruno Prémont Committed by Ben Skeggs
Browse files

drm/nouveau/nouveau: 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: default avatarBruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 4761703b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment