tracing: make sched_switch stop/start light weight
commit5fec6ddcb43a91aa9a254c8ecf174c803de6f07e
authorSteven Rostedt <srostedt@redhat.com>
Tue, 17 Mar 2009 23:59:53 +0000 (17 19:59 -0400)
committerSteven Rostedt <srostedt@redhat.com>
Wed, 18 Mar 2009 03:10:45 +0000 (17 23:10 -0400)
tree6c8e3c0d719022e7c82d87894c9eb28492035aa5
parent97e7e4f391cac2b00417b581b432533d245d4fd0
tracing: make sched_switch stop/start light weight

The stopping and starting of a tracer should be light weight and
be able to be called in all contexts. The sched_switch grabbed
mutexes in the start/stop functions. This patch changes it to a
simple variable, on/off.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/trace_sched_switch.c