projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e5b3a9
)
sh: perf: Set up perf_max_events.
author
Paul Mundt
<lethal@linux-sh.org>
Wed, 13 Oct 2010 08:52:14 +0000
(17:52 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Wed, 13 Oct 2010 08:52:14 +0000
(17:52 +0900)
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>
arch/sh/kernel/perf_event.c
patch
|
blob
|
history
diff --git
a/arch/sh/kernel/perf_event.c
b/arch/sh/kernel/perf_event.c
index
7a3dc35
..
ecef1fe
100644
(file)
--- 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;