]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sgi-xp: use lockdep_assert_held()
authorAndi Kleen <ak@linux.intel.com>
Thu, 12 Apr 2012 22:52:12 +0000 (08:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:23 +0000 (13:47 +1000)
commit5e3c72135eb6adc51430fc4920d2c4ab2854f9be
tree2e187c14107cacf10528999b0f150dd2c9d839f2
parent15457472117c9f64b6562129737e521f033ebd5c
sgi-xp: use lockdep_assert_held()

!spin_is_locked() is always true on a UP build, so it cannot be used for
assertions.  Replace with lockdep_assert_held().

I realize UP builds are not very likely for this driver, but it's still
better to fix it.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Robin Holt <holt@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/misc/sgi-xp/xpc_channel.c
drivers/misc/sgi-xp/xpc_sn2.c
drivers/misc/sgi-xp/xpc_uv.c