summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/power5+-pmu.c
diff options
context:
space:
mode:
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>2019-04-04 13:54:49 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2019-05-02 18:54:58 +0200
commit708597daf23486ea6f889ca29cc88389ca9a409a (patch)
treecd23d0c623a26ca24792b14a4373fde9da69a861 /arch/powerpc/perf/power5+-pmu.c
parentpowerpc/powernv/ioda2: Add __printf format/argument verification (diff)
downloadlinux-708597daf23486ea6f889ca29cc88389ca9a409a.tar.xz
linux-708597daf23486ea6f889ca29cc88389ca9a409a.zip
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/power5+-pmu.c')
-rw-r--r--arch/powerpc/perf/power5+-pmu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/perf/power5+-pmu.c b/arch/powerpc/perf/power5+-pmu.c
index 0526dac66007..9aa803504cb2 100644
--- a/arch/powerpc/perf/power5+-pmu.c
+++ b/arch/powerpc/perf/power5+-pmu.c
@@ -677,7 +677,7 @@ static struct power_pmu power5p_pmu = {
.cache_events = &power5p_cache_events,
};
-static int __init init_power5p_pmu(void)
+int init_power5p_pmu(void)
{
if (!cur_cpu_spec->oprofile_cpu_type ||
(strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power5+")
@@ -686,5 +686,3 @@ static int __init init_power5p_pmu(void)
return register_power_pmu(&power5p_pmu);
}
-
-early_initcall(init_power5p_pmu);