sched: Fix need_resched() when checking peempt
authorHillf Danton <dhillf@gmail.com>
Tue, 14 Jun 2011 22:36:24 +0000 (18:36 -0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 15 Jun 2011 07:50:32 +0000 (09:50 +0200)
The RT preempt check tests the wrong task if NEED_RESCHED is
set. It currently checks the local CPU task. It is supposed to
check the task that is running on the runqueue we are about to
wake another task on.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Reviewed-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20110614223657.450239027@goodmis.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found