drivers/perf: arm_pmu: split out platform device probe logic
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:53 +0000 (09:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:54 +0000 (16:29 +0100)
commit18bfcfe51b8f60b69ab012888dea8061a9cd3381
tree1b24520d4c02227265176bcb2a559baa84c862ef
parent3cf7ee98b8489fd2ff58374e3882a666f81d629f
drivers/perf: arm_pmu: split out platform device probe logic

Now that we've split the pdev and DT probing logic from the runtime
management, let's move the former into its own file. We gain a few lines
due to the copyright header and includes, but this should keep the logic
clearly separated, and paves the way for adding ACPI support in a
similar fashion.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
[will: rename nr_irqs to avoid conflict with global variable]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/Makefile
drivers/perf/arm_pmu.c
drivers/perf/arm_pmu_platform.c [new file with mode: 0644]
include/linux/perf/arm_pmu.h