OSDN Git Service

arm64: sysreg: Remove unused and rotting SCTLR_ELx field definitions
authorWill Deacon <will@kernel.org>
Mon, 15 Jul 2019 13:28:17 +0000 (14:28 +0100)
committerWill Deacon <will@kernel.org>
Mon, 5 Aug 2019 10:06:34 +0000 (11:06 +0100)
commit73961dc1182ed7e1eb80a90ee28871ab3547af7e
tree0545bfe01e3f9ebdc0d903eb1dec104d3cd89dc6
parent332e5281a4e8269b96233a7babc98b03596b7e6d
arm64: sysreg: Remove unused and rotting SCTLR_ELx field definitions

Our SCTLR_ELx field definitions are somewhat over-engineered in that
they carefully define masks describing the RES0/RES1 bits and then use
these to construct further masks representing bits to be set/cleared for
the _EL1 and _EL2 registers.

However, most of the resulting definitions aren't actually used by
anybody and have subsequently started to bit-rot when new fields have
been added by the architecture, resulting in fields being part of the
RES0 mask despite being defined and used elsewhere.

Rather than fix up these masks, simply remove the unused parts entirely
so that we can drop the maintenance burden. We can always add things
back if we need them in the future.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/sysreg.h