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)
commit8dd0de8be31b4b966d17750a0b10df2f575c91ac
tree991b9dddf6ef092f94bba5af7609c13c8d7b113c
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2
sched: Fix need_resched() when checking peempt

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>
kernel/sched_rt.c