Commit 4f9abb7e authored by Heiko Carstens's avatar Heiko Carstens
Browse files

s390/spinlock: use R constraint in inline assembly



Allow the compiler to generate slightly better code by using the R
constraint.

Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 00017423
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
}