]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/atomic: implement atomic_sub_return() with atomic_add_return()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 11 Sep 2013 12:28:47 +0000 (14:28 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 22 Oct 2013 07:17:59 +0000 (09:17 +0200)
commit42230288ed391ffc7a8079f64340f30634b92219
tree6b69efc43b8b1af0c901e23447dad11888328a53
parentc6bcb490d026d8f10b53090550d5fe2514cfb17a
s390/atomic: implement atomic_sub_return() with atomic_add_return()

Get rid of the own atomic_sub_return() implementation. Otherwise we can't
make use of the interlocked-access facility 1 instructions for
atomic_sub_return(), since there is no "load and subtract" instruction
available.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/atomic.h