KVM: arm/arm64: Extract duplicated code to own function
authorAndrew Murray <andrew.murray@arm.com>
Mon, 17 Jun 2019 19:01:02 +0000 (20:01 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 5 Jul 2019 12:56:10 +0000 (13:56 +0100)
commit6f4d2a0b0b1e9a1f7594e666eebad98372901818
treee488b33e4a4968eb9559842778ecc0a14d65cf7a
parent418e5ca88cc18b7e9eaafa40eac26397ccd66a71
KVM: arm/arm64: Extract duplicated code to own function

Let's reduce code duplication by extracting common code to its own
function.

Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/pmu.c