summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_sched_switch.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-11-08 04:36:02 +0100
committerIngo Molnar <mingo@elte.hu>2008-11-08 09:51:39 +0100
commitc76f06945be50564f925799ddfb6235ee4c26aa0 (patch)
tree941aaf84dd36096d7fb013f1e4be28bb8f2ac598 /kernel/trace/trace_sched_switch.c
parentftrace: remove ctrl_update method (diff)
downloadlinux-c76f06945be50564f925799ddfb6235ee4c26aa0.tar.xz
linux-c76f06945be50564f925799ddfb6235ee4c26aa0.zip
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.c6
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)
static void sched_switch_trace_init(struct trace_array *tr)
{
ctx_trace = tr;
-
- if (tr->ctrl)
- start_sched_trace(tr);
+ start_sched_trace(tr);
}
static void sched_switch_trace_reset(struct trace_array *tr)
{
- if (tr->ctrl && sched_ref)
+ if (sched_ref)
stop_sched_trace(tr);
}