OSDN Git Service

arm64: KVM: PMU: Refactor pmu_*_el0_disabled
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 27 Mar 2017 16:03:37 +0000 (17:03 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:12 +0000 (07:49 -0700)
commit6c0070366deadd16503853708a0e32a612b7f628
treebde0da9077edcd13e7ef8bfc09c53c9c1462e61a
parent8ac76ef4b5139a1d10e459ae43b6c14f49391977
arm64: KVM: PMU: Refactor pmu_*_el0_disabled

There is a lot of duplication in the pmu_*_el0_disabled helpers,
and as we're going to modify them shortly, let's move all the
common stuff in a single function.

No functional change.

Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
arch/arm64/kvm/sys_regs.c