arm64/cpufeature: Pull out helper for CPUID register definitions
authorMark Brown <broonie@kernel.org>
Wed, 12 Apr 2023 17:13:29 +0000 (18:13 +0100)
committerWill Deacon <will@kernel.org>
Mon, 17 Apr 2023 12:03:14 +0000 (13:03 +0100)
commit876e3c8efe79d7f21dadd711837ba9a495c2246a
tree7b6d6f9fa1e4852e6fccad826576be22ac94d7a8
parente8d018dd0257f744ca50a729e3d042cf2ec9da65
arm64/cpufeature: Pull out helper for CPUID register definitions

We use the same structure to match hwcaps and CPU features so we can use
the same helper to generate the fields required. Pull the portion of the
current hwcaps helper that initialises the fields out into a separate
define placed earlier in the file so we can use it for cpufeatures.

No functional change.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230303-arm64-cpufeature-helpers-v2-1-4c8f28a6f203@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c