]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6afc736c71baf2214cbb214d5569e73666680b8
tree0545bfe01e3f9ebdc0d903eb1dec104d3cd89dc6
parent4dbeb832cca782ed13ccc9a88d9221d21cc80ac9
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