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>
This commit is contained in:
Marc Zyngier 2019-09-01 22:12:36 +01:00
commit aa979fa899