diff options
author | Andrew Murray <andrew.murray@arm.com> | 2019-06-17 15:01:01 -0400 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-07-05 08:56:04 -0400 |
commit | 418e5ca88cc18b7e9eaafa40eac26397ccd66a71 (patch) | |
tree | a55fd9495b0394959e46be04709814b53700ea72 /include/kvm | |
parent | 11b41626bd5327332f5805ad8f8580365a363067 (diff) |
KVM: arm/arm64: Rename kvm_pmu_{enable/disable}_counter functions
The kvm_pmu_{enable/disable}_counter functions can enable/disable
multiple counters at once as they operate on a bitmask. Let's
make this clearer by renaming the function.
Suggested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_pmu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/kvm/arm_pmu.h b/include/kvm/arm_pmu.h index 84a9db156be7..45e5205750b4 100644 --- a/include/kvm/arm_pmu.h +++ b/include/kvm/arm_pmu.h | |||
@@ -35,8 +35,8 @@ void kvm_pmu_set_counter_value(struct kvm_vcpu *vcpu, u64 select_idx, u64 val); | |||
35 | u64 kvm_pmu_valid_counter_mask(struct kvm_vcpu *vcpu); | 35 | u64 kvm_pmu_valid_counter_mask(struct kvm_vcpu *vcpu); |
36 | void kvm_pmu_vcpu_reset(struct kvm_vcpu *vcpu); | 36 | void kvm_pmu_vcpu_reset(struct kvm_vcpu *vcpu); |
37 | void kvm_pmu_vcpu_destroy(struct kvm_vcpu *vcpu); | 37 | void kvm_pmu_vcpu_destroy(struct kvm_vcpu *vcpu); |
38 | void kvm_pmu_disable_counter(struct kvm_vcpu *vcpu, u64 val); | 38 | void kvm_pmu_disable_counter_mask(struct kvm_vcpu *vcpu, u64 val); |
39 | void kvm_pmu_enable_counter(struct kvm_vcpu *vcpu, u64 val); | 39 | void kvm_pmu_enable_counter_mask(struct kvm_vcpu *vcpu, u64 val); |
40 | void kvm_pmu_flush_hwstate(struct kvm_vcpu *vcpu); | 40 | void kvm_pmu_flush_hwstate(struct kvm_vcpu *vcpu); |
41 | void kvm_pmu_sync_hwstate(struct kvm_vcpu *vcpu); | 41 | void kvm_pmu_sync_hwstate(struct kvm_vcpu *vcpu); |
42 | bool kvm_pmu_should_notify_user(struct kvm_vcpu *vcpu); | 42 | bool kvm_pmu_should_notify_user(struct kvm_vcpu *vcpu); |
@@ -72,8 +72,8 @@ static inline u64 kvm_pmu_valid_counter_mask(struct kvm_vcpu *vcpu) | |||
72 | } | 72 | } |
73 | static inline void kvm_pmu_vcpu_reset(struct kvm_vcpu *vcpu) {} | 73 | static inline void kvm_pmu_vcpu_reset(struct kvm_vcpu *vcpu) {} |
74 | static inline void kvm_pmu_vcpu_destroy(struct kvm_vcpu *vcpu) {} | 74 | static inline void kvm_pmu_vcpu_destroy(struct kvm_vcpu *vcpu) {} |
75 | static inline void kvm_pmu_disable_counter(struct kvm_vcpu *vcpu, u64 val) {} | 75 | static inline void kvm_pmu_disable_counter_mask(struct kvm_vcpu *vcpu, u64 val) {} |
76 | static inline void kvm_pmu_enable_counter(struct kvm_vcpu *vcpu, u64 val) {} | 76 | static inline void kvm_pmu_enable_counter_mask(struct kvm_vcpu *vcpu, u64 val) {} |
77 | static inline void kvm_pmu_flush_hwstate(struct kvm_vcpu *vcpu) {} | 77 | static inline void kvm_pmu_flush_hwstate(struct kvm_vcpu *vcpu) {} |
78 | static inline void kvm_pmu_sync_hwstate(struct kvm_vcpu *vcpu) {} | 78 | static inline void kvm_pmu_sync_hwstate(struct kvm_vcpu *vcpu) {} |
79 | static inline bool kvm_pmu_should_notify_user(struct kvm_vcpu *vcpu) | 79 | static inline bool kvm_pmu_should_notify_user(struct kvm_vcpu *vcpu) |