From: Peter Zijlstra Date: Mon, 31 May 2010 16:13:25 +0000 (+0200) Subject: sched, trace: Fix sched_switch() prev_state argument X-Git-Tag: v2.6.35-rc2~43^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02f726949f2be0967aa4871dd4e47d3967779b26;p=pandora-kernel.git sched, trace: Fix sched_switch() prev_state argument For CONFIG_PREEMPT=y kernels the sched_switch(.prev_state) argument isn't useful because we can get preempted with current->state != TASK_RUNNING without actually getting removed from the runqueue. Cure this by treating all preempted tasks as runnable from the tracer's point of view. Signed-off-by: Peter Zijlstra Cautiously-acked-by: Steven Rostedt LKML-Reference: <1275322715.27810.23323.camel@twins> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed