projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0001742
)
s390/spinlock: use R constraint in inline assembly
author
Heiko Carstens
<hca@linux.ibm.com>
Mon, 22 Mar 2021 15:12:56 +0000
(16:12 +0100)
committer
Heiko 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
patch
|
blob
|
history
diff --git
a/arch/s390/include/asm/spinlock.h
b/arch/s390/include/asm/spinlock.h
index
3a37172
..
ef59588
100644
(file)
--- a/
arch/s390/include/asm/spinlock.h
+++ b/
arch/s390/include/asm/spinlock.h
@@
-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");
}