]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/perf: arm_pmu: move irq request/free into probe
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:52 +0000 (09:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commitaa79c2adfb2bda8287942dc1662399b7b1cb8e6d
tree7de4edbe9624d15f20a750300c8588d4aba1def5
parent2e5886a80d5e80d165da6c4c5d5ba0a056c14030
drivers/perf: arm_pmu: move irq request/free into probe

Currently we request (and potentially free) all IRQs for a given PMU in
cpu_pmu_init(). This works for platform/DT probing today, but it doesn't
fit ACPI well as we don't have all our affinity data up-front.

In preparation for ACPI support, fold the IRQ request/free into
arm_pmu_device_probe(), which will remain specific to platform/DT
probing.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c