diff options
author | Bruno Prémont <bonbons@linux-vserver.org> | 2014-12-21 17:43:31 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-12-22 08:37:38 +1000 |
commit | ff4c0d5213b015e60aa87c1352604f10ba9c3e12 (patch) | |
tree | 09f16efc6c1657ef2096e7d67364a15aa8f1d4b7 /drivers/gpu/drm/nouveau/nouveau_gem.c | |
parent | 4761703bd04bbdf56396d264903cc5a1fdcb3c01 (diff) | |
download | linux-ff4c0d5213b015e60aa87c1352604f10ba9c3e12.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_gem.c')
0 files changed, 0 insertions, 0 deletions