summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/pmu.h
diff options
context:
space:
mode:
authorMark Rutland2015-05-26 18:23:35 +0200
committerWill Deacon2015-05-28 17:54:06 +0200
commitcfdad2991f7addb1bc0ce3361a5ee980a0482a87 (patch)
tree98c19aa073308cbfc25f5b71264aa717a69bde17 /arch/arm/include/asm/pmu.h
parentarm: perf: kill off unused pm callbacks (diff)
downloadkernel-qcow2-linux-cfdad2991f7addb1bc0ce3361a5ee980a0482a87.tar.gz
kernel-qcow2-linux-cfdad2991f7addb1bc0ce3361a5ee980a0482a87.tar.xz
kernel-qcow2-linux-cfdad2991f7addb1bc0ce3361a5ee980a0482a87.zip
arm: perf: share arm_pmu_device_probe
Enable the probe function to be shared with other drivers, which will inject the appropriate of_device_id and pmu_probe_info tables. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/include/asm/pmu.h')
-rw-r--r--arch/arm/include/asm/pmu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pmu.h b/arch/arm/include/asm/pmu.h
index 62464a425499..3fc87dfd77e6 100644
--- a/arch/arm/include/asm/pmu.h
+++ b/arch/arm/include/asm/pmu.h
@@ -145,6 +145,10 @@ struct pmu_probe_info {
#define XSCALE_PMU_PROBE(_version, _fn) \
PMU_PROBE(ARM_CPU_IMP_INTEL << 24 | _version, ARM_PMU_XSCALE_MASK, _fn)
+int arm_pmu_device_probe(struct platform_device *pdev,
+ const struct of_device_id *of_table,
+ const struct pmu_probe_info *probe_table);
+
#endif /* CONFIG_HW_PERF_EVENTS */
#endif /* __ARM_PMU_H__ */