]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sgi-xp: use lockdep_assert_held()
authorAndi Kleen <ak@linux.intel.com>
Wed, 25 Apr 2012 01:03:49 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:27 +0000 (15:17 +1000)
commit2204ee12fcd1103c9956a9ecc196b08e27237ca8
treeb5818fa27d6396946a59d337aa38f6fb889d0683
parentf600e8f77f36112efe9a596cc15ca3b47311e9ef
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