projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b9ff0d
)
perfcounters, x86: fix sw counters on non-PMC CPUs
author
Ingo Molnar
<mingo@elte.hu>
Sun, 14 Dec 2008 19:21:00 +0000
(20:21 +0100)
committer
Ingo 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
patch
|
blob
|
history
diff --git
a/kernel/perf_counter.c
b/kernel/perf_counter.c
index 59c52f9ee431a6ee09140d58f72a724856102e51..539fa8283a06f34e81ead1b6618e3d9f07cd9d38 100644
(file)
--- 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;