arm64/sysreg: Standardise naming for ID_PFR2_EL1
authorJames Morse <james.morse@arm.com>
Wed, 30 Nov 2022 17:16:09 +0000 (17:16 +0000)
committerWill Deacon <will@kernel.org>
Thu, 1 Dec 2022 15:53:14 +0000 (15:53 +0000)
To convert the 32bit id registers to use the sysreg generation, they
must first have a regular pattern, to match the symbols the script
generates.

Ensure symbols for the ID_PFR2_EL1 register have an _EL1 suffix.

No functional change.

Signed-off-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20221130171637.718182-11-james.morse@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/cpufeature.c

index f93f68ebdcccdc324be611cb1ba568eff09ae487..155cb298c89725c87382c25af091432c7dae17c1 100644 (file)
 #define ID_DFR0_COPSDBG_SHIFT          4
 #define ID_DFR0_COPDBG_SHIFT           0
 
-#define ID_PFR2_SSBS_SHIFT             4
-#define ID_PFR2_CSV3_SHIFT             0
+#define ID_PFR2_EL1_SSBS_SHIFT         4
+#define ID_PFR2_EL1_CSV3_SHIFT         0
 
 #define MVFR0_FPROUND_SHIFT            28
 #define MVFR0_FPSHVEC_SHIFT            24
index 271a82dd59d444a0171f8876d2a6e1600441393b..8009fc2e4b5ec90efd95f36d93a214a8aa4aa432 100644 (file)
@@ -560,8 +560,8 @@ static const struct arm64_ftr_bits ftr_id_pfr1[] = {
 };
 
 static const struct arm64_ftr_bits ftr_id_pfr2[] = {
-       ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, ID_PFR2_SSBS_SHIFT, 4, 0),
-       ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, ID_PFR2_CSV3_SHIFT, 4, 0),
+       ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, ID_PFR2_EL1_SSBS_SHIFT, 4, 0),
+       ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, ID_PFR2_EL1_CSV3_SHIFT, 4, 0),
        ARM64_FTR_END,
 };