summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-02-04 12:17:55 +0000
committerWill Deacon <will.deacon@arm.com>2015-07-27 14:34:39 +0100
commitd964b7229e7f94428a1e8d26999adffbe8a69db2 (patch)
treeaa0b764dee60f631d5a61b941f4fd40a6513724f /arch/arm64/include
parent40a1db2434a1b62332b1af25cfa14d7b8c0301fe (diff)
downloadlinux-d964b7229e7f94428a1e8d26999adffbe8a69db2.tar.bz2
arm64: alternatives: add cpu feature for lse atomics
Add a CPU feature for the LSE atomic instructions, so that they can be patched in at runtime when we detect that they are supported. Reviewed-by: Steve Capper <steve.capper@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/cpufeature.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h
index 40e106f81f27..d9262d4b4dcd 100644
--- a/arch/arm64/include/asm/cpufeature.h
+++ b/arch/arm64/include/asm/cpufeature.h
@@ -26,8 +26,9 @@
#define ARM64_WORKAROUND_845719 2
#define ARM64_HAS_SYSREG_GIC_CPUIF 3
#define ARM64_HAS_PAN 4
+#define ARM64_CPU_FEAT_LSE_ATOMICS 5
-#define ARM64_NCAPS 5
+#define ARM64_NCAPS 6
#ifndef __ASSEMBLY__