]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit079b5883f0bbef1f6446f6c4573b989c656e6a46
tree3e8bcfec5355448a943a205a520726fc1ca40335
parent89189874ad2ee48326986449b40d57b7b2e0217c
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