aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2015-09-23 16:13:58 -0700
committerDaniel Thompson <daniel.thompson@linaro.org>2015-09-23 16:15:35 -0700
commit7fa3281e0cc5f91746acd5b752d489c1ed1cfe17 (patch)
tree76c3299421869728c714b58e0386085e027d3f1e /arch/arm64/include
parent329c12742eba0f0bc92c8f7561fbbee9f0a6f5d3 (diff)
arm64: lse: Adopt new alternative assembler macros
Convert the dynamic patching for ARM64_HAS_LSE_ATOMICS over to the newly added alternative assembler macros. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/lse.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/lse.h b/arch/arm64/include/asm/lse.h
index 3de42d68611d..e3d0b13d1903 100644
--- a/arch/arm64/include/asm/lse.h
+++ b/arch/arm64/include/asm/lse.h
@@ -12,7 +12,11 @@
.arch_extension lse
.macro alt_lse, llsc, lse
- alternative_insn "\llsc", "\lse", ARM64_HAS_LSE_ATOMICS
+alternative_if_not ARM64_HAS_LSE_ATOMICS
+ \llsc
+alternative_else
+ \lse
+alternative_endif
.endm
#else /* __ASSEMBLER__ */