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>
This commit is contained in:
@@ -324,6 +324,7 @@ int __cpuinit register_sh_pmu(struct sh_pmu *pmu)
|
|||||||
pr_info("Performance Events: %s support registered\n", pmu->name);
|
pr_info("Performance Events: %s support registered\n", pmu->name);
|
||||||
|
|
||||||
WARN_ON(pmu->num_events > MAX_HWEVENTS);
|
WARN_ON(pmu->num_events > MAX_HWEVENTS);
|
||||||
|
perf_max_events = pmu->num_events;
|
||||||
|
|
||||||
perf_cpu_notifier(sh_pmu_notifier);
|
perf_cpu_notifier(sh_pmu_notifier);
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user