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_sched_switch.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_sched_switch.c')
-rw-r--r-- | kernel/trace/trace_sched_switch.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index 7b73fd11e4aa..be35bdfe2e38 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c | |||
@@ -209,14 +209,12 @@ static void stop_sched_trace(struct trace_array *tr) | |||
209 | static void sched_switch_trace_init(struct trace_array *tr) | 209 | static void sched_switch_trace_init(struct trace_array *tr) |
210 | { | 210 | { |
211 | ctx_trace = tr; | 211 | ctx_trace = tr; |
212 | 212 | start_sched_trace(tr); | |
213 | if (tr->ctrl) | ||
214 | start_sched_trace(tr); | ||
215 | } | 213 | } |
216 | 214 | ||
217 | static void sched_switch_trace_reset(struct trace_array *tr) | 215 | static void sched_switch_trace_reset(struct trace_array *tr) |
218 | { | 216 | { |
219 | if (tr->ctrl && sched_ref) | 217 | if (sched_ref) |
220 | stop_sched_trace(tr); | 218 | stop_sched_trace(tr); |
221 | } | 219 | } |
222 | 220 | ||