diff options
author | Andrew Murray <andrew.murray@arm.com> | 2019-06-17 21:01:04 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-07-05 14:56:18 +0200 |
commit | 218907cbc2b82419c70180610163c987d4764b27 (patch) | |
tree | a22012749fc9a5bf7c6c28c2de69374d5dccf45b /include/kvm | |
parent | KVM: arm/arm64: Re-create event when setting counter value (diff) | |
download | linux-218907cbc2b82419c70180610163c987d4764b27.tar.xz linux-218907cbc2b82419c70180610163c987d4764b27.zip |
KVM: arm/arm64: Remove pmc->bitmask
We currently use pmc->bitmask to determine the width of the pmc - however
it's superfluous as the pmc index already describes if the pmc is a cycle
counter or event counter. The architecture clearly describes the widths of
these counters.
Let's remove the bitmask to simplify the code.
Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_pmu.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/kvm/arm_pmu.h b/include/kvm/arm_pmu.h index 45e5205750b4..48a15d4b820e 100644 --- a/include/kvm/arm_pmu.h +++ b/include/kvm/arm_pmu.h @@ -17,7 +17,6 @@ struct kvm_pmc { u8 idx; /* index into the pmu->pmc array */ struct perf_event *perf_event; - u64 bitmask; }; struct kvm_pmu { |