trace_clock: fix preemption bug
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 10 Mar 2009 18:03:43 +0000 (19:03 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Mar 2009 19:03:01 +0000 (20:03 +0100)
commit6cc3c6e12bb039047974ad2e7e2d46d15a1b762f
tree1c3ff8b51757674ead536a3220c0da14608ee267
parent2395037e5dd6841a6fa23afbb31e79d92e549cd1
trace_clock: fix preemption bug

Using the function_graph tracer in recent kernels generates a spew of
preemption BUGs. Fix this by not requiring trace_clock_local() users
to disable preemption themselves.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_clock.c