diff options
author | Rik van Riel <riel@redhat.com> | 2011-02-01 09:51:03 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-02-03 08:20:33 -0500 |
commit | ac53db596cc08ecb8040cfb6f71ae40c6f2041c4 (patch) | |
tree | c263b558772213530532026af6fa9e34a8f88375 /include/linux/sched.h | |
parent | 2c13c919d9e9a3db9896143a501f83dcbbe1ced4 (diff) |
sched: Use a buddy to implement yield_task_fair()
Use the buddy mechanism to implement yield_task_fair. This
allows us to skip onto the next highest priority se at every
level in the CFS tree, unless doing so would introduce gross
unfairness in CPU time distribution.
We order the buddy selection in pick_next_entity to check
yield first, then last, then next. We need next to be able
to override yield, because it is possible for the "next" and
"yield" task to be different processen in the same sub-tree
of the CFS tree. When they are, we need to go into that
sub-tree regardless of the "yield" hint, and pick the correct
entity once we get to the right level.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20110201095103.3a79e92a@annuminas.surriel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 0542774914d4..4e9fad271c30 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1942,8 +1942,6 @@ int sched_rt_handler(struct ctl_table *table, int write, | |||
1942 | void __user *buffer, size_t *lenp, | 1942 | void __user *buffer, size_t *lenp, |
1943 | loff_t *ppos); | 1943 | loff_t *ppos); |
1944 | 1944 | ||
1945 | extern unsigned int sysctl_sched_compat_yield; | ||
1946 | |||
1947 | #ifdef CONFIG_SCHED_AUTOGROUP | 1945 | #ifdef CONFIG_SCHED_AUTOGROUP |
1948 | extern unsigned int sysctl_sched_autogroup_enabled; | 1946 | extern unsigned int sysctl_sched_autogroup_enabled; |
1949 | 1947 | ||