summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/debug.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-09-16 10:44:54 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-24 17:16:51 +0200
commit5692e4d11cf5b51045a41daf295626c7fcbb698a (patch)
treec1c26e0633e3a71ecdd09be0569b19452e6141c2 /arch/s390/kernel/debug.c
parenteddf0d5b31dda679a98f3e5615a510b8f065cb5d (diff)
s390/atomic: optimize atomic_add() for constant values
If the interlocked-access facility 1 is available we can use the asi and agsi instructions for interlocked updates if the to be added value is a contanst and small (in the range of -128..127). asi and agsi do not not return the old or new value, therefore these instructions can only be used for atomic_(add|sub|inc|dec)[64]. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/debug.c')
0 files changed, 0 insertions, 0 deletions