]> 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)
commite8bc887bd01fc9a3741bda35ff4f968a58260365
tree294286e259a08c977e3e71819b2c1d763b13312f
parentc36697072a8b4387615783aa4a14f8596549285a
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