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_wakeup.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_wakeup.c')
-rw-r--r-- | kernel/trace/trace_sched_wakeup.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c index 23e54d4e4d92..983f2b1478c9 100644 --- a/kernel/trace/trace_sched_wakeup.c +++ b/kernel/trace/trace_sched_wakeup.c | |||
@@ -334,18 +334,14 @@ static void stop_wakeup_tracer(struct trace_array *tr) | |||
334 | static void wakeup_tracer_init(struct trace_array *tr) | 334 | static void wakeup_tracer_init(struct trace_array *tr) |
335 | { | 335 | { |
336 | wakeup_trace = tr; | 336 | wakeup_trace = tr; |
337 | 337 | start_wakeup_tracer(tr); | |
338 | if (tr->ctrl) | ||
339 | start_wakeup_tracer(tr); | ||
340 | } | 338 | } |
341 | 339 | ||
342 | static void wakeup_tracer_reset(struct trace_array *tr) | 340 | static void wakeup_tracer_reset(struct trace_array *tr) |
343 | { | 341 | { |
344 | if (tr->ctrl) { | 342 | stop_wakeup_tracer(tr); |
345 | stop_wakeup_tracer(tr); | 343 | /* make sure we put back any tasks we are tracing */ |
346 | /* make sure we put back any tasks we are tracing */ | 344 | wakeup_reset(tr); |
347 | wakeup_reset(tr); | ||
348 | } | ||
349 | } | 345 | } |
350 | 346 | ||
351 | static void wakeup_tracer_start(struct trace_array *tr) | 347 | static void wakeup_tracer_start(struct trace_array *tr) |