From: Ingo Molnar Date: Sun, 14 Dec 2008 19:21:00 +0000 (+0100) Subject: perfcounters, x86: fix sw counters on non-PMC CPUs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=088e2852c858159d47f71ee8da38e0fb1b21f806;p=mv-sheeva.git 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 --- diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 59c52f9ee43..539fa8283a0 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;