aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_counter.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-14 14:21:00 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-14 14:31:29 -0500
commit088e2852c858159d47f71ee8da38e0fb1b21f806 (patch)
treefc0b73f753ea7e07df9cc65ca3248cb25222faa3 /kernel/perf_counter.c
parent2b9ff0db19b5e2c77000b7201525f9c3d6e8328d (diff)
perfcounters, x86: fix sw counters on non-PMC CPUs
Make perf_max_counters default to at least 1 - this allows the sw counters to be used. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r--kernel/perf_counter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index 59c52f9ee431..539fa8283a06 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -25,7 +25,7 @@
25 */ 25 */
26DEFINE_PER_CPU(struct perf_cpu_context, perf_cpu_context); 26DEFINE_PER_CPU(struct perf_cpu_context, perf_cpu_context);
27 27
28int perf_max_counters __read_mostly; 28int perf_max_counters __read_mostly = 1;
29static int perf_reserved_percpu __read_mostly; 29static int perf_reserved_percpu __read_mostly;
30static int perf_overcommit __read_mostly = 1; 30static int perf_overcommit __read_mostly = 1;
31 31