Commit 84ac9658 authored by Heiko Carstens's avatar Heiko Carstens
Browse files

s390/spinlock: Use R constraint for arch_load_niai4()



The load instruction used within arch_load_niai4() has a short displacement
and index register. Therefore use the R constraint to reflect this.
The used Q constraint does consider an index register.

Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 1200f216
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ static inline int arch_load_niai4(int *lock)
	asm_inline volatile(
		ALTERNATIVE("nop", ".insn rre,0xb2fa0000,4,0", ALT_FACILITY(49)) /* NIAI 4 */
		"	l	%[owner],%[lock]\n"
		: [owner] "=d" (owner) : [lock] "Q" (*lock) : "memory");
		: [owner] "=d" (owner) : [lock] "R" (*lock) : "memory");
	return owner;
}