forked from Minki/linux
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>
This commit is contained in:
parent
000174233b
commit
4f9abb7e70
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user