aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-03-22 16:12:56 +0100
committerHeiko Carstens <hca@linux.ibm.com>2021-04-12 12:46:43 +0200
commit4f9abb7e70f2f4808f0fce36b66232890201c6a3 (patch)
tree675d179b4458eca914a272f4e662eb1d2b922cdc /arch/s390
parents390/atomic,cmpxchg: switch to use atomic-instrumented.h (diff)
downloadlinux-dev-4f9abb7e70f2f4808f0fce36b66232890201c6a3.tar.xz
linux-dev-4f9abb7e70f2f4808f0fce36b66232890201c6a3.zip
s390/spinlock: use R constraint in inline assembly
Allow the compiler to generate slightly better code by using the R constraint. Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/asm/spinlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/spinlock.h b/arch/s390/include/asm/spinlock.h
index 3a37172d5398..ef59588a3042 100644
--- a/arch/s390/include/asm/spinlock.h
+++ b/arch/s390/include/asm/spinlock.h
@@ -88,7 +88,7 @@ static inline void arch_spin_unlock(arch_spinlock_t *lp)
asm_inline volatile(
ALTERNATIVE("", ".long 0xb2fa0070", 49) /* NIAI 7 */
" sth %1,%0\n"
- : "=Q" (((unsigned short *) &lp->lock)[1])
+ : "=R" (((unsigned short *) &lp->lock)[1])
: "d" (0) : "cc", "memory");
}