s390/spinlock: use R constraint in inline assembly
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 22 Mar 2021 15:12:56 +0000 (16:12 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 12 Apr 2021 10:46:43 +0000 (12:46 +0200)
Allow the compiler to generate slightly better code by using the R
constraint.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/spinlock.h

index 3a37172..ef59588 100644 (file)
@@ -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");
 }