]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64/sysreg: Standardise naming for ID_DFR1_EL1
authorJames Morse <james.morse@arm.com>
Wed, 30 Nov 2022 17:16:11 +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_DFR1_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-13-james.morse@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/cpufeature.c

index 835b279f7f200b917fd6ca451bc4edf89900bce9..29d93a36eac9812e717550e611a69493cac9c8d8 100644 (file)
 #define ID_ISAR4_EL1_WithShifts_SHIFT          4
 #define ID_ISAR4_EL1_Unpriv_SHIFT              0
 
-#define ID_DFR1_MTPMU_SHIFT            0
+#define ID_DFR1_EL1_MTPMU_SHIFT                0
 
 #define ID_ISAR0_EL1_Divide_SHIFT      24
 #define ID_ISAR0_EL1_Debug_SHIFT       20
index 77b65a75ba07aef52ad4d59c13cd621e43922ac0..84b3dc994a70f00bc3c060892788986167bd8f0f 100644 (file)
@@ -578,7 +578,7 @@ static const struct arm64_ftr_bits ftr_id_dfr0[] = {
 };
 
 static const struct arm64_ftr_bits ftr_id_dfr1[] = {
-       S_ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_DFR1_MTPMU_SHIFT, 4, 0),
+       S_ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_DFR1_EL1_MTPMU_SHIFT, 4, 0),
        ARM64_FTR_END,
 };