diff options
| author | Oliver Upton <[email protected]> | 2024-12-17 17:55:13 +0000 |
|---|---|---|
| committer | Oliver Upton <[email protected]> | 2024-12-18 21:22:25 +0000 |
| commit | e22c369520d0a2a191820cc308f81a860b1b8d47 (patch) | |
| tree | 32ffceebf6cd5281219976e8364a17ec44b32e47 /drivers/platform/x86/intel/pmt/class.c | |
| parent | KVM: arm64: Always check the state from hyp_ack_unshare() (diff) | |
| download | kernel-e22c369520d0a2a191820cc308f81a860b1b8d47.tar.gz kernel-e22c369520d0a2a191820cc308f81a860b1b8d47.zip | |
KVM: arm64: Add unified helper for reprogramming counters by mask
Having separate helpers for enabling/disabling counters provides the
wrong abstraction, as the state of each counter needs to be evaluated
independently and, in some cases, use a different global enable bit.
Collapse the enable/disable accessors into a single, common helper that
reconfigures every counter set in @mask, leaving the complexity of
determining if an event is actually enabled in
kvm_pmu_counter_is_enabled().
Reviewed-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
