diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2017-10-03 17:06:15 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2018-03-19 10:53:19 +0000 |
commit | b7787e6666061aea02be7ce084fe13c336acd0cf (patch) | |
tree | 29b4a9c558e35016d765f4d494e3ab10b89b8e01 /include/kvm | |
parent | a2465629b62a82b3145dc7ef40ec6c32432cf002 (diff) | |
download | lwn-b7787e6666061aea02be7ce084fe13c336acd0cf.tar.gz lwn-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