提交 088e2852 编写于 作者: I Ingo Molnar

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: NIngo Molnar <mingo@elte.hu>
上级 2b9ff0db
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
*/ */
DEFINE_PER_CPU(struct perf_cpu_context, perf_cpu_context); 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_reserved_percpu __read_mostly;
static int perf_overcommit __read_mostly = 1; static int perf_overcommit __read_mostly = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册