OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:22:55 +0000 (20:22 +0100)
commit98be7165d9f71f5df9802548b7d8ab2cf6ccb211
treeea6f19e96c209ae589968ea0f1255c85116ea422
parent45e2061147c329fc08f81a7e2a551b92bcc2a6a3
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: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kvm/hyp/switch.c