diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-11-26 14:28:26 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-11-28 14:12:05 +0100 |
commit | 84ac96587b2a7a27d2aba250009c45dffb8ab4b6 (patch) | |
tree | 69786665ddcda5d87da63dca0bbe0b5ba6ac0766 /arch/s390 | |
parent | s390/spinlock: Generate shorter code for arch_spin_unlock() (diff) | |
download | linux-84ac96587b2a7a27d2aba250009c45dffb8ab4b6.tar.xz linux-84ac96587b2a7a27d2aba250009c45dffb8ab4b6.zip |
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: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/lib/spinlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/lib/spinlock.c b/arch/s390/lib/spinlock.c index 255c0a8202e7..c27c0f2a8018 100644 --- a/arch/s390/lib/spinlock.c +++ b/arch/s390/lib/spinlock.c @@ -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; } |