perfcounters, x86: fix sw counters on non-PMC CPUs
authorIngo Molnar <mingo@elte.hu>
Sun, 14 Dec 2008 19:21:00 +0000 (20:21 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Dec 2008 19:31:29 +0000 (20:31 +0100)
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>
kernel/perf_counter.c

index 59c52f9ee431a6ee09140d58f72a724856102e51..539fa8283a06f34e81ead1b6618e3d9f07cd9d38 100644 (file)
@@ -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;
 
This page took 0.02468 seconds and 5 git commands to generate.