arm64: KVM: Make PSCI_VERSION a fast path
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 3 Jan 2018 16:38:37 +0000 (16:38 +0000)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:31 +0000 (18:46 +0800)
commit6c8074e77cf469b8a45bb49e0a1654d3b52257b5
treecf55bbb785bb34241b4f0e5cdd61296f961c8c12
parent0dceaf03c13fbb8da3bb34d67b7e02ab975f4064
arm64: KVM: Make PSCI_VERSION a fast path

commit 90348689d500 upstream.

For those CPUs that require PSCI to perform a BP invalidation,
going all the way to the PSCI code for not much is a waste of
precious cycles. Let's terminate that call as early as possible.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/kvm/hyp/switch.c