[PATCH 1/3] nouveau: Do not BUG_ON(!spin_is_locked()) on UP

2015-01-12 Thread Bruno Prémont
Hi Greg, stable team, Please apply this patch to stable (3.18 and 3.17). It is commit ff4c0d5213b015e60aa87c1352604f10ba9c3e12 in linus's tree: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ff4c0d5213b015e60aa87c1352604f10ba9c3e12 Thanks, Bruno On Sun, 21 Decembe

[PATCH 1/3] nouveau: 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 --- See also fdo bug #87552 drivers/gpu/drm/nouveau/core/core/eve