aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel
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/kernel
parentarm64: elf: advertise 8.1 atomic instructions as new hwcap (diff)
downloadlinux-dev-d964b7229e7f94428a1e8d26999adffbe8a69db2.tar.xz
linux-dev-d964b7229e7f94428a1e8d26999adffbe8a69db2.zip
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/kernel')
-rw-r--r--arch/arm64/kernel/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index b2f9895ecf7b..f4fbbc884893 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -284,6 +284,7 @@ static void __init setup_processor(void)
default:
case 2:
elf_hwcap |= HWCAP_ATOMICS;
+ cpus_set_cap(ARM64_CPU_FEAT_LSE_ATOMICS);
case 1:
/* RESERVED */
case 0: