summaryrefslogtreecommitdiffstats
path: root/include/kvm
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2017-10-03 17:06:15 +0200
committerMarc Zyngier <marc.zyngier@arm.com>2018-03-19 11:53:19 +0100
commitb7787e6666061aea02be7ce084fe13c336acd0cf (patch)
tree29b4a9c558e35016d765f4d494e3ab10b89b8e01 /include/kvm
parentKVM: arm64: Configure c15, PMU, and debug register traps on cpu load/put for VHE (diff)
downloadlinux-b7787e6666061aea02be7ce084fe13c336acd0cf.tar.xz
linux-b7787e6666061aea02be7ce084fe13c336acd0cf.zip
KVM: arm64: Cleanup __activate_traps and __deactive_traps for VHE and non-VHE
To make the code more readable and to avoid the overhead of a function call, let's get rid of a pair of the alternative function selectors and explicitly call the VHE and non-VHE functions using the has_vhe() static key based selector instead, telling the compiler to try to inline the static function if it can. Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/kvm')
0 files changed, 0 insertions, 0 deletions