diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-11-07 22:36:02 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-08 03:51:39 -0500 |
commit | c76f06945be50564f925799ddfb6235ee4c26aa0 (patch) | |
tree | 941aaf84dd36096d7fb013f1e4be28bb8f2ac598 /kernel/trace/trace_nop.c | |
parent | bbf5b1a0cecb56de6236db8b01c5bfb7ab8ba8b2 (diff) |
ftrace: remove trace array ctrl
Impact: remove obsolete variable in trace_array structure
With the new start / stop method of ftrace, the ctrl variable
in the trace_array structure is now obsolete. Remove it.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_nop.c')
-rw-r--r-- | kernel/trace/trace_nop.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/trace/trace_nop.c b/kernel/trace/trace_nop.c index e3c5fbfcdd36..2ef1d227e7d8 100644 --- a/kernel/trace/trace_nop.c +++ b/kernel/trace/trace_nop.c | |||
@@ -32,14 +32,12 @@ static void nop_trace_init(struct trace_array *tr) | |||
32 | for_each_online_cpu(cpu) | 32 | for_each_online_cpu(cpu) |
33 | tracing_reset(tr, cpu); | 33 | tracing_reset(tr, cpu); |
34 | 34 | ||
35 | if (tr->ctrl) | 35 | start_nop_trace(tr); |
36 | start_nop_trace(tr); | ||
37 | } | 36 | } |
38 | 37 | ||
39 | static void nop_trace_reset(struct trace_array *tr) | 38 | static void nop_trace_reset(struct trace_array *tr) |
40 | { | 39 | { |
41 | if (tr->ctrl) | 40 | stop_nop_trace(tr); |
42 | stop_nop_trace(tr); | ||
43 | } | 41 | } |
44 | 42 | ||
45 | struct tracer nop_trace __read_mostly = | 43 | struct tracer nop_trace __read_mostly = |