Skip to content
Snippets Groups Projects
Commit 8dd0de8b authored by Hillf Danton's avatar Hillf Danton Committed by Ingo Molnar
Browse files

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: default avatarHillf Danton <dhillf@gmail.com>
Reviewed-by: default avatarYong Zhang <yong.zhang0@gmail.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20110614223657.450239027@goodmis.org


Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2c53b436
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment