Re: [for-next][PATCH 2/2] tracing: Clean up scheduling in trace_wakeup_test_thread()

2014-10-09 Thread Peter Zijlstra
On Wed, Oct 08, 2014 at 09:10:12PM -0400, Steven Rostedt wrote: > From: Steven Rostedt > > 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

[for-next][PATCH 2/2] tracing: Clean up scheduling in trace_wakeup_test_thread()

2014-10-08 Thread Steven Rostedt
From: Steven Rostedt 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