]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sgi-xp: use lockdep_assert_held()
authorAndi Kleen <ak@linux.intel.com>
Thu, 3 May 2012 05:44:07 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:39 +0000 (15:46 +1000)
commitc376d88d4f3491ae090024b941b91bbaf1acea40
tree901119da3546bd231d3d92da9dc3ecd3034f8b46
parentc0c157b9c7768c25fa9aeec97e50628fd3db3140
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