arm64/sysreg: Standardise naming for ID_DFR0_EL1
authorJames Morse <james.morse@arm.com>
Wed, 30 Nov 2022 17:16:10 +0000 (17:16 +0000)
committerWill Deacon <will@kernel.org>
Thu, 1 Dec 2022 15:53:14 +0000 (15:53 +0000)
commitf4f5969e354235bbe729ff3881089fc902c0daff
tree6decfeb20e6c5cf17934244090899491e2aeee55
parent1ecf3dcb136320359ffd79d1ca5908e078443b6b
arm64/sysreg: Standardise naming for ID_DFR0_EL1

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_DFR0_EL1 register have an _EL1 suffix,
and use lower-case for feature names where the arm-arm does the same.

The arm-arm has feature names for some of the ID_DFR0_EL1.PerMon encodings.
Use these feature names in preference to the '8_4' indication of the
architecture version they were introduced in.

No functional change.

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