OSDN Git Service

arm64: cpufeature: Group indexed system register definitions by name
authorWill Deacon <will@kernel.org>
Tue, 5 May 2020 12:08:02 +0000 (13:08 +0100)
committerWill Deacon <will@kernel.org>
Tue, 5 May 2020 13:04:37 +0000 (14:04 +0100)
commiteeb2d87ece1219cff33e5107c2a6d57803354d15
treee84294c55c2662671e962abf4c75f6bae209a7ea
parent433022b58e628418020155e1f6a3d59c06a474c0
arm64: cpufeature: Group indexed system register definitions by name

Some system registers contain an index in the name (e.g. ID_MMFR<n>_EL1)
and, while this index often follows the register encoding, newer additions
to the architecture are necessarily tacked on the end. Sorting these
registers by encoding therefore becomes a bit of a mess.

Group the indexed system register definitions by name so that it's easier to
read and will hopefully reduce the chance of us accidentally introducing
duplicate definitions 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