arm64: cpufeature: Add an early command-line cpufeature override facility
authorMarc Zyngier <maz@kernel.org>
Mon, 8 Feb 2021 09:57:22 +0000 (09:57 +0000)
committerWill Deacon <will@kernel.org>
Tue, 9 Feb 2021 13:50:52 +0000 (13:50 +0000)
commit33200303553d3d74e7b980493cf363da545f887d
tree8055844cfb71525bb886e4d60e4a48bdc43c681a
parentf6f0c4362f070cab4a0cec432e82428d702ce0a6
arm64: cpufeature: Add an early command-line cpufeature override facility

In order to be able to override CPU features at boot time,
let's add a command line parser that matches options of the
form "cpureg.feature=value", and store the corresponding
value into the override val/mask pair.

No features are currently defined, so no expected change in
functionality.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: David Brazdil <dbrazdil@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210208095732.3267263-14-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/Makefile
arch/arm64/kernel/head.S
arch/arm64/kernel/idreg-override.c [new file with mode: 0644]