diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-14 14:21:00 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-14 14:31:29 -0500 |
commit | 088e2852c858159d47f71ee8da38e0fb1b21f806 (patch) | |
tree | fc0b73f753ea7e07df9cc65ca3248cb25222faa3 /kernel/perf_counter.c | |
parent | 2b9ff0db19b5e2c77000b7201525f9c3d6e8328d (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.c | 2 |
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 | */ |
26 | DEFINE_PER_CPU(struct perf_cpu_context, perf_cpu_context); | 26 | DEFINE_PER_CPU(struct perf_cpu_context, perf_cpu_context); |
27 | 27 | ||
28 | int perf_max_counters __read_mostly; | 28 | int perf_max_counters __read_mostly = 1; |
29 | static int perf_reserved_percpu __read_mostly; | 29 | static int perf_reserved_percpu __read_mostly; |
30 | static int perf_overcommit __read_mostly = 1; | 30 | static int perf_overcommit __read_mostly = 1; |
31 | 31 | ||