tracing: Kill the dead code in probe_sched_switch() and probe_sched_wakeup()
authorOleg Nesterov <oleg@redhat.com>
Wed, 23 Jul 2014 19:35:03 +0000 (21:35 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 11 Nov 2014 17:42:44 +0000 (12:42 -0500)
commit458faf0b88b19a46d51bb9760fa6e03a1bc6d97b
treebbb7975f14054631d54ed715f744af61c5f9dae6
parent632537256e9f969a188cc4d0159e0027a459d3e7
tracing: Kill the dead code in probe_sched_switch() and probe_sched_wakeup()

After the previous patch it is clear that "tracer_enabled" can never be
true, we can remove the "if (tracer_enabled)" code in probe_sched_switch()
and probe_sched_wakeup(). Plus we can obviously remove tracer_enabled,
ctx_trace, and sched_stopped as well.

Link: http://lkml.kernel.org/p/20140723193503.GA30217@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_sched_switch.c