mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
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>
This commit is contained in:
parent
2b9ff0db19
commit
088e2852c8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user