]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0a6d990096a964fe0d44e6e68d6ca5a0b6dc27b
tree991b9dddf6ef092f94bba5af7609c13c8d7b113c
parent380abddf94be3476f85e64e22814c928018c2f42
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