]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4229ea8c52b8af5e1b78a24c1c5102ad6d9b31d
tree294286e259a08c977e3e71819b2c1d763b13312f
parent829e34f4aa097808bdf737343be41c94206952d9
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