]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Declutter host PSCI 0.1 handling
authorMarc Zyngier <maz@kernel.org>
Tue, 22 Dec 2020 12:46:41 +0000 (12:46 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 22 Dec 2020 12:56:44 +0000 (12:56 +0000)
commitc4d4b64591805085316d49144d5235a9b6ec449a
tree635addaa0a5ec0a94d732ec19930ae63b09055ed
parent2bb0c90ef6e8a9b38e3268a29b2152ef344cb8a1
KVM: arm64: Declutter host PSCI 0.1 handling

Although there is nothing wrong with the current host PSCI relay
implementation, we can clean it up and remove some of the helpers
that do not improve the overall readability of the legacy PSCI 0.1
handling.

Opportunity is taken to turn the bitmap into a set of booleans,
and creative use of preprocessor macros make init and check
more concise/readable.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/nvhe/psci-relay.c