arm64: KVM: Replace hyp_alternate_select with has_vhe()
authorMarc Zyngier <maz@kernel.org>
Sun, 1 Sep 2019 21:12:36 +0000 (22:12 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 9 Sep 2019 17:16:32 +0000 (18:16 +0100)
commitaa979fa899c5cf592e63ce7b34bc767224225c6a
tree3e8bcfec5355448a943a205a520726fc1ca40335
parentb6749e20d5710c955fc6d4322f8fd98c915b2573
arm64: KVM: Replace hyp_alternate_select with has_vhe()

Given that the TLB invalidation path is pretty rarely used, there
was never any advantage to using hyp_alternate_select() here.
has_vhe(), being a glorified static key, is the right tool for
the job.

Off you go.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
arch/arm64/kvm/hyp/tlb.c