sparc: Support atomic64_dec_if_positive properly.
authorDavid S. Miller <davem@davemloft.net>
Sat, 10 Nov 2012 03:37:59 +0000 (19:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Nov 2012 03:37:59 +0000 (19:37 -0800)
commit193d2aadc0ff5c687f6f0d5ef1d38c86ab511a14
tree294286e259a08c977e3e71819b2c1d763b13312f
parent0bce04be442cf4d6e4ba9dac2f0a4c5ee88af5c5
sparc: Support atomic64_dec_if_positive properly.

Sparc32 already supported it, as a consequence of using the
generic atomic64 implementation.  And the sparc64 implementation
is rather trivial.

This allows us to set ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE for all
of sparc, and avoid the annoying warning from lib/atomic64_test.c

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/Kconfig
arch/sparc/include/asm/atomic_64.h
arch/sparc/lib/atomic_64.S
arch/sparc/lib/ksyms.c