]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sgi-xp: use lockdep_assert_held()
authorAndi Kleen <ak@linux.intel.com>
Wed, 4 Apr 2012 00:08:24 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 11 Apr 2012 04:45:50 +0000 (14:45 +1000)
commit5428fa7298c4171c082dc5f5ed54276b28be4ab5
treefcaff0732ee04ebdf73c140861e2249569297ce4
parent4ff9688c217549a83faf2bb7c9d40cac6f8571e5
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