KVM: arm/arm64: Remove pmc->bitmask
authorAndrew Murray <andrew.murray@arm.com>
Mon, 17 Jun 2019 19:01:04 +0000 (20:01 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 5 Jul 2019 12:56:18 +0000 (13:56 +0100)
commit218907cbc2b82419c70180610163c987d4764b27
treea22012749fc9a5bf7c6c28c2de69374d5dccf45b
parent30d97754b2d1bc4fd20f27c25fed92fc7ce39ce3
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>
include/kvm/arm_pmu.h
virt/kvm/arm/pmu.c