tile: support atomic64_dec_if_positive()
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 1 Feb 2013 17:37:48 +0000 (12:37 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 22 Mar 2013 19:47:00 +0000 (15:47 -0400)
commitadf6d9b30f089c52e674e84ca2960581e504e5e3
treef680f2877480201116e54da1e6a1af848884d646
parentef567f25d5d9d803b89bc2aec6bb71fe8b4bebd9
tile: support atomic64_dec_if_positive()

Use the normal cmpxchg() idiom to implement this functionality.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/Kconfig
arch/tile/include/asm/atomic.h