mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-14 16:39:21 +00:00
arm64: lse: fix lse cmpxchg code indentation
For some reason, the ll/sc cmpxchg asm is all off to the left and awkward to read in conjunction with the following (correctly indented) LSE version. This patch shifts the ll/sc code back to where it should be. Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
parent
63a581865e
commit
484c96dbb2
@ -319,9 +319,9 @@ static inline unsigned long __cmpxchg_case_##name(volatile void *ptr, \
|
|||||||
\
|
\
|
||||||
asm volatile(ARM64_LSE_ATOMIC_INSN( \
|
asm volatile(ARM64_LSE_ATOMIC_INSN( \
|
||||||
/* LL/SC */ \
|
/* LL/SC */ \
|
||||||
"nop\n" \
|
" nop\n" \
|
||||||
__LL_SC_CMPXCHG(name) \
|
__LL_SC_CMPXCHG(name) \
|
||||||
"nop", \
|
" nop", \
|
||||||
/* LSE atomics */ \
|
/* LSE atomics */ \
|
||||||
" mov " #w "30, %" #w "[old]\n" \
|
" mov " #w "30, %" #w "[old]\n" \
|
||||||
" cas" #mb #sz "\t" #w "30, %" #w "[new], %[v]\n" \
|
" cas" #mb #sz "\t" #w "30, %" #w "[new], %[v]\n" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user