diff options
author | Fuad Tabba <tabba@google.com> | 2024-04-23 18:05:11 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2024-05-01 18:46:58 +0300 |
commit | f11290e0aa6e40e6823f80c7dcdacf033a54aaeb (patch) | |
tree | 00581d259e068f1e34b4c3f9c9f81b82be80846b /tools/perf/scripts/python/stackcollapse.py | |
parent | b5b85bd713b1623c192754cd39a3351fa0c13717 (diff) | |
download | linux-f11290e0aa6e40e6823f80c7dcdacf033a54aaeb.tar.xz |
KVM: arm64: Refactor checks for FP state ownership
To avoid direct comparison against the fp_owner enum, add a new
function that performs the check, host_owns_fp_regs(), to
complement the existing guest_owns_fp_regs().
To check for fpsimd state ownership, use the helpers instead of
directly using the enums.
No functional change intended.
Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Acked-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240423150538.2103045-4-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions