diff options
author | Will Deacon <will.deacon@arm.com> | 2015-07-27 11:23:58 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-07-27 11:37:14 -0400 |
commit | 2e94da13790336eb3fd00fb5e97610dd9aebe213 (patch) | |
tree | 706fba639eb0e16c57b7da85c06afc59c71d2bac /arch/arm64/kernel/setup.c | |
parent | 0e4a07092fc833dc3d972a3394398aef68217c13 (diff) |
arm64: lse: use generic cpufeature detection for LSE atomics
Rework the cpufeature detection to support ISAR0 and use that for
detecting the presence of LSE atomics.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/setup.c')
-rw-r--r-- | arch/arm64/kernel/setup.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 82ae8429baf2..b2f9895ecf7b 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c | |||
@@ -284,10 +284,6 @@ static void __init setup_processor(void) | |||
284 | default: | 284 | default: |
285 | case 2: | 285 | case 2: |
286 | elf_hwcap |= HWCAP_ATOMICS; | 286 | elf_hwcap |= HWCAP_ATOMICS; |
287 | cpus_set_cap(ARM64_HAS_LSE_ATOMICS); | ||
288 | if (IS_ENABLED(CONFIG_AS_LSE) && | ||
289 | IS_ENABLED(CONFIG_ARM64_LSE_ATOMICS)) | ||
290 | pr_info("LSE atomics supported\n"); | ||
291 | case 1: | 287 | case 1: |
292 | /* RESERVED */ | 288 | /* RESERVED */ |
293 | case 0: | 289 | case 0: |