diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-01-15 08:14:29 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-01-28 04:45:44 +0100 |
commit | 7179ba52889bef7e5e23f72908270e1ab2b7fc6f (patch) | |
tree | 4904e3a0268095e0242b29adc782708a7729ccc8 /arch/sh/kernel/cpu/sh4a/setup-sh7343.c | |
parent | powerpc: Add support for the optimised lockref implementation (diff) | |
download | linux-7179ba52889bef7e5e23f72908270e1ab2b7fc6f.tar.xz linux-7179ba52889bef7e5e23f72908270e1ab2b7fc6f.zip |
powerpc: Implement arch_spin_is_locked() using arch_spin_value_unlocked()
At a glance these are just the inverse of each other. The one subtlety
is that arch_spin_value_unlocked() takes the lock by value, rather than
as a pointer, which is important for the lockref code.
On the other hand arch_spin_is_locked() doesn't really care, so
implement it in terms of arch_spin_value_unlocked().
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7343.c')
0 files changed, 0 insertions, 0 deletions