diff options
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r-- | kernel/perf_counter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 534e20d14d63..b0bdb36ccfc8 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -100,16 +100,16 @@ hw_perf_group_sched_in(struct perf_counter *group_leader, | |||
100 | 100 | ||
101 | void __weak perf_counter_print_debug(void) { } | 101 | void __weak perf_counter_print_debug(void) { } |
102 | 102 | ||
103 | static DEFINE_PER_CPU(int, disable_count); | 103 | static DEFINE_PER_CPU(int, perf_disable_count); |
104 | 104 | ||
105 | void __perf_disable(void) | 105 | void __perf_disable(void) |
106 | { | 106 | { |
107 | __get_cpu_var(disable_count)++; | 107 | __get_cpu_var(perf_disable_count)++; |
108 | } | 108 | } |
109 | 109 | ||
110 | bool __perf_enable(void) | 110 | bool __perf_enable(void) |
111 | { | 111 | { |
112 | return !--__get_cpu_var(disable_count); | 112 | return !--__get_cpu_var(perf_disable_count); |
113 | } | 113 | } |
114 | 114 | ||
115 | void perf_disable(void) | 115 | void perf_disable(void) |