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)
commit3cf7ee98b8489fd2ff58374e3882a666f81d629f
tree7de4edbe9624d15f20a750300c8588d4aba1def5
parent0e2663d921ea1861540cd7f331d8e2c7668aa31f
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