aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r--arch/sh/kernel/perf_event.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/kernel/perf_event.c b/arch/sh/kernel/perf_event.c
index 7a3dc3567258..ecef1fe02566 100644
--- a/arch/sh/kernel/perf_event.c
+++ b/arch/sh/kernel/perf_event.c
@@ -324,6 +324,7 @@ int __cpuinit register_sh_pmu(struct sh_pmu *pmu)
324 pr_info("Performance Events: %s support registered\n", pmu->name); 324 pr_info("Performance Events: %s support registered\n", pmu->name);
325 325
326 WARN_ON(pmu->num_events > MAX_HWEVENTS); 326 WARN_ON(pmu->num_events > MAX_HWEVENTS);
327 perf_max_events = pmu->num_events;
327 328
328 perf_cpu_notifier(sh_pmu_notifier); 329 perf_cpu_notifier(sh_pmu_notifier);
329 return 0; 330 return 0;