diff options
author | Madhavan Srinivasan <maddy@linux.vnet.ibm.com> | 2019-04-04 14:54:49 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-05-02 19:54:58 +0300 |
commit | 708597daf23486ea6f889ca29cc88389ca9a409a (patch) | |
tree | cd23d0c623a26ca24792b14a4373fde9da69a861 /arch/powerpc/perf/ppc970-pmu.c | |
parent | 1e496391a8452101308a23b7395cdd4983b6e5bd (diff) | |
download | linux-708597daf23486ea6f889ca29cc88389ca9a409a.tar.xz |
powerpc/perf: init pmu from core-book3s
Currenty pmu driver file for each ppc64 generation processor
has a __init call in itself. Refactor the code by moving the
__init call to core-books.c. This also clean's up compat mode
pmu driver registration.
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
[mpe: Use SPDX tag for license]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf/ppc970-pmu.c')
-rw-r--r-- | arch/powerpc/perf/ppc970-pmu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/perf/ppc970-pmu.c b/arch/powerpc/perf/ppc970-pmu.c index 8b6a8a36fa38..1d3370914022 100644 --- a/arch/powerpc/perf/ppc970-pmu.c +++ b/arch/powerpc/perf/ppc970-pmu.c @@ -490,7 +490,7 @@ static struct power_pmu ppc970_pmu = { .flags = PPMU_NO_SIPR | PPMU_NO_CONT_SAMPLING, }; -static int __init init_ppc970_pmu(void) +int init_ppc970_pmu(void) { if (!cur_cpu_spec->oprofile_cpu_type || (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970") @@ -499,5 +499,3 @@ static int __init init_ppc970_pmu(void) return register_power_pmu(&ppc970_pmu); } - -early_initcall(init_ppc970_pmu); |