]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Use cpus_have_final_cap for has_vhe()
authorMarc Zyngier <maz@kernel.org>
Wed, 13 May 2020 10:38:28 +0000 (11:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Sat, 16 May 2020 14:04:51 +0000 (15:04 +0100)
commit5f93edb1b15bbd7b683f898e28daa80d0af52fa3
treea74ea5422b81a92da81719d095c4c2ea103f47b3
parent8fc0d470c478106a93567b533f13a14de38ebedc
KVM: arm64: Use cpus_have_final_cap for has_vhe()

By the time we start using the has_vhe() helper, we have long
discovered whether we are running VHE or not. It thus makes
sense to use cpus_have_final_cap() instead of cpus_have_const_cap(),
which leads to a small text size reduction.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: David Brazdil <dbrazdil@google.com>
Link: https://lore.kernel.org/r/20200513103828.74580-1-maz@kernel.org
arch/arm64/include/asm/virt.h