]> git.baikalelectronics.ru Git - kernel.git/commit
arm_pmu: note IRQs and PMUs per-cpu
authorMark Rutland <mark.rutland@arm.com>
Tue, 12 Dec 2017 16:56:06 +0000 (16:56 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 20 Feb 2018 11:34:54 +0000 (11:34 +0000)
commit7954b51676f0f622dcb688cae5b4f6eb658d3d0c
tree2a9a95ff4a3007a8e9ba61a057d059d562444eb8
parent2d21db600e0b0429a0db8bf62f4c0cb705a3f7b7
arm_pmu: note IRQs and PMUs per-cpu

To support ACPI systems, we need to request IRQs before we know the
associated PMU, and thus we need some percpu variable that the IRQ
handler can find the PMU from.

As we're going to request IRQs without the PMU, we can't rely on the
arm_pmu::active_irqs mask, and similarly need to track requested IRQs
with a percpu variable.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
[will: made armpmu_count_irq_users static]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c
include/linux/perf/arm_pmu.h