diff options
author | Christoph Lameter <cl@linux-foundation.org> | 2009-10-07 19:17:45 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-10-12 06:51:49 -0400 |
commit | 9288f99aa52d90a5b82573c4b769c97c55af2f56 (patch) | |
tree | 34d484799f1d779d7244e373be7cd5d7d2e684af /kernel/trace/trace.h | |
parent | 494f6a9e12f5137d355d3ce3f5789ef148b642bc (diff) |
this_cpu: Use this_cpu_xx for ftrace
this_cpu_xx can reduce the instruction count here and also
avoid address arithmetic.
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 405cb850b75d..542f45554883 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -413,7 +413,7 @@ extern int DYN_FTRACE_TEST_NAME(void); | |||
413 | 413 | ||
414 | extern int ring_buffer_expanded; | 414 | extern int ring_buffer_expanded; |
415 | extern bool tracing_selftest_disabled; | 415 | extern bool tracing_selftest_disabled; |
416 | DECLARE_PER_CPU(local_t, ftrace_cpu_disabled); | 416 | DECLARE_PER_CPU(int, ftrace_cpu_disabled); |
417 | 417 | ||
418 | #ifdef CONFIG_FTRACE_STARTUP_TEST | 418 | #ifdef CONFIG_FTRACE_STARTUP_TEST |
419 | extern int trace_selftest_startup_function(struct tracer *trace, | 419 | extern int trace_selftest_startup_function(struct tracer *trace, |