drm/nouveau/nouveau: Do not BUG_ON(!spin_is_locked()) on UP
authorBruno Prémont <bonbons@linux-vserver.org>
Sun, 21 Dec 2014 16:43:31 +0000 (17:43 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 21 Dec 2014 22:37:38 +0000 (08:37 +1000)
commitff4c0d5213b015e60aa87c1352604f10ba9c3e12
tree09f16efc6c1657ef2096e7d67364a15aa8f1d4b7
parent4761703bd04bbdf56396d264903cc5a1fdcb3c01
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: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/event.c
drivers/gpu/drm/nouveau/core/core/notify.c
This page took 0.02855 seconds and 5 git commands to generate.