From: Paul Mundt Date: Wed, 13 Oct 2010 08:52:14 +0000 (+0900) Subject: sh: perf: Set up perf_max_events. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51c6c9bb34fcd112d4ab8b8f5c1d1b6a10a00e71;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- 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;