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 11:53:19 +0100 |
commit | b7787e6666061aea02be7ce084fe13c336acd0cf (patch) | |
tree | 29b4a9c558e35016d765f4d494e3ab10b89b8e01 /virt | |
parent | KVM: arm64: Configure c15, PMU, and debug register traps on cpu load/put for VHE (diff) | |
download | linux-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 'virt')
0 files changed, 0 insertions, 0 deletions