Skip to content

Commit 4f9abb7

Browse files
committed
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>
1 parent 0001742 commit 4f9abb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/s390/include/asm/spinlock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static inline void arch_spin_unlock(arch_spinlock_t *lp)
8888
asm_inline volatile(
8989
ALTERNATIVE("", ".long 0xb2fa0070", 49) /* NIAI 7 */
9090
" sth %1,%0\n"
91-
: "=Q" (((unsigned short *) &lp->lock)[1])
91+
: "=R" (((unsigned short *) &lp->lock)[1])
9292
: "d" (0) : "cc", "memory");
9393
}
9494

0 commit comments

Comments
 (0)