arm64: lse: fix lse cmpxchg code indentation
authorWill Deacon <will.deacon@arm.com>
Wed, 29 Jul 2015 14:16:22 +0000 (15:16 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 29 Jul 2015 17:32:09 +0000 (18:32 +0100)
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>
arch/arm64/include/asm/atomic_lse.h

index f873bf61e17b10ca4ec88c6f7af2d7aca583b89f..55d740e634596363f6cbfbdeacd77113a00a486e 100644 (file)
@@ -319,9 +319,9 @@ static inline unsigned long __cmpxchg_case_##name(volatile void *ptr,       \
                                                                        \
        asm volatile(ARM64_LSE_ATOMIC_INSN(                             \
        /* LL/SC */                                                     \
-       "nop\n"                                                         \
-       __LL_SC_CMPXCHG(name)                                           \
-       "nop",                                                          \
+       "       nop\n"                                                  \
+               __LL_SC_CMPXCHG(name)                                   \
+       "       nop",                                                   \
        /* LSE atomics */                                               \
        "       mov     " #w "30, %" #w "[old]\n"                       \
        "       cas" #mb #sz "\t" #w "30, %" #w "[new], %[v]\n"         \