aboutsummaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt2010-10-13 17:52:14 +0900
committerPaul Mundt2010-10-13 17:52:14 +0900
commit51c6c9bb34fcd112d4ab8b8f5c1d1b6a10a00e71 (patch)
tree001aab40b411fcd9dfd4370b6797fc810457d6a6 /arch/sh
parent5e5b3a9dc8405f6a49531a02754a6cc2a1c6cd28 (diff)
sh: perf: Set up perf_max_events.
Presently this is uninitialized in the architecture code, so it's artificlally capped to the default initialization value. Set it up at registration time. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-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)
pr_info("Performance Events: %s support registered\n", pmu->name);
WARN_ON(pmu->num_events > MAX_HWEVENTS);
+ perf_max_events = pmu->num_events;
perf_cpu_notifier(sh_pmu_notifier);
return 0;