diff options
author | Mark Rutland <mark.rutland@arm.com> | 2015-05-26 17:23:35 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-05-28 16:54:06 +0100 |
commit | cfdad2991f7addb1bc0ce3361a5ee980a0482a87 (patch) | |
tree | 98c19aa073308cbfc25f5b71264aa717a69bde17 /arch/arm/include/asm/pmu.h | |
parent | ed61f9851d0686d56d7a9648b4807d82ad0adce6 (diff) | |
download | linux-cfdad2991f7addb1bc0ce3361a5ee980a0482a87.tar.bz2 |
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.h | 4 |
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__ */ |