]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 1 Feb 2013 20:50:46 +0000 (15:50 -0500)
commitecc46c516df87aec7be48cb9ef744d8332444fd8
treeeeaedb952e57ba547b4f05357ad0e3abc68011c3
parent8662231ab21b865a6aa841ed85fb67f299701235
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