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