]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sched: rework of "prioritize non-migratable tasks over migratable ones"
authorDmitry Adamushko <dmitry.adamushko@gmail.com>
Tue, 1 Jul 2008 21:32:15 +0000 (23:32 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 18 Jul 2008 10:55:14 +0000 (12:55 +0200)
commit7ebefa8ceefed44cc321be70afc54a585a68ac0b
treecab0118d96d704fcca2e52f192f4bb2a7f6a909e
parent13b40c1e40f3261e83ee514a08b77dbecb93021b
sched: rework of "prioritize non-migratable tasks over migratable ones"

(1) handle in a generic way all cases when a newly woken-up task is
not migratable (not just a corner case when "rt_se->nr_cpus_allowed ==
1")

(2) if current is to be preempted, then make sure "p" will be picked
up by pick_next_task_rt().
i.e. move task's group at the head of its list as well.

currently, it's not a case for the group-scheduling case as described
here: http://www.ussg.iu.edu/hypermail/linux/kernel/0807.0/0134.html

Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_rt.c