arm64: lse: rename ARM64_CPU_FEAT_LSE_ATOMICS for consistency
authorWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 13:11:55 +0000 (14:11 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 14:28:54 +0000 (15:28 +0100)
Other CPU features follow an 'ARM64_HAS_*' naming scheme, so do the same
for the LSE atomics.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/lse.h
arch/arm64/kernel/setup.c

index d9262d4b4dcd8c9b6ee54b503ce56dc8ad74fbe8..171570702bb801431f141f46238eb0d9e1895fe5 100644 (file)
@@ -26,7 +26,7 @@
 #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_HAS_LSE_ATOMICS                  5
 
 #define ARM64_NCAPS                            6
 
index fb3ac56a2cc048ab051991dfc89054c78e61c0eb..3de42d68611df91ba6d46e32c197f700bb52bf52 100644 (file)
@@ -12,7 +12,7 @@
 .arch_extension        lse
 
 .macro alt_lse, llsc, lse
-       alternative_insn "\llsc", "\lse", ARM64_CPU_FEAT_LSE_ATOMICS
+       alternative_insn "\llsc", "\lse", ARM64_HAS_LSE_ATOMICS
 .endm
 
 #else  /* __ASSEMBLER__ */
@@ -29,7 +29,7 @@ __asm__(".arch_extension      lse");
 
 /* In-line patching at runtime */
 #define ARM64_LSE_ATOMIC_INSN(llsc, lse)                               \
-       ALTERNATIVE(llsc, lse, ARM64_CPU_FEAT_LSE_ATOMICS)
+       ALTERNATIVE(llsc, lse, ARM64_HAS_LSE_ATOMICS)
 
 #endif /* __ASSEMBLER__ */
 #else  /* CONFIG_AS_LSE && CONFIG_ARM64_LSE_ATOMICS */
index 97785c01acbfcc88dc7b968758a668b69f445094..82ae8429baf216efe52281cc9689c5cd1d74e208 100644 (file)
@@ -284,7 +284,7 @@ static void __init setup_processor(void)
                default:
                case 2:
                        elf_hwcap |= HWCAP_ATOMICS;
-                       cpus_set_cap(ARM64_CPU_FEAT_LSE_ATOMICS);
+                       cpus_set_cap(ARM64_HAS_LSE_ATOMICS);
                        if (IS_ENABLED(CONFIG_AS_LSE) &&
                            IS_ENABLED(CONFIG_ARM64_LSE_ATOMICS))
                                pr_info("LSE atomics supported\n");