tracing: Clean up scheduling in trace_wakeup_test_thread()
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 8 Oct 2014 17:52:16 +0000 (13:52 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 9 Oct 2014 15:15:08 +0000 (11:15 -0400)
Peter's new debugging tool triggers when tasks exit with !TASK_RUNNING.
The code in trace_wakeup_test_thread() also has a single schedule() call
that should be encompassed by a loop.

This cleans up the code a little to make it a bit more robust and
also makes the return exit properly with TASK_RUNNING.

Link: http://lkml.kernel.org/p/20141008135216.76142204@gandalf.local.home
Reported-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Peter Zijlstra <peterz@infreadead.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

No differences found