summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2011-02-01 09:51:03 -0500
committerIngo Molnar <mingo@elte.hu>2011-02-03 14:20:33 +0100
commitac53db596cc08ecb8040cfb6f71ae40c6f2041c4 (patch)
treec263b558772213530532026af6fa9e34a8f88375 /kernel/sysctl.c
parent2c13c919d9e9a3db9896143a501f83dcbbe1ced4 (diff)
downloadlinux-ac53db596cc08ecb8040cfb6f71ae40c6f2041c4.tar.gz
linux-ac53db596cc08ecb8040cfb6f71ae40c6f2041c4.tar.bz2
linux-ac53db596cc08ecb8040cfb6f71ae40c6f2041c4.zip
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 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index bc86bb32e126..cbfda7e2416e 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -360,13 +360,6 @@ static struct ctl_table kern_table[] = {
.mode = 0644,
.proc_handler = sched_rt_handler,
},
- {
- .procname = "sched_compat_yield",
- .data = &sysctl_sched_compat_yield,
- .maxlen = sizeof(unsigned int),
- .mode = 0644,
- .proc_handler = proc_dointvec,
- },
#ifdef CONFIG_SCHED_AUTOGROUP
{
.procname = "sched_autogroup_enabled",