aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-09-07 12:12:06 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-07 14:39:05 -0400
commitcdd2ab3de4301728b20efd6225681d3ff591a938 (patch)
tree7b812c19b624efb0056a96a1403e5b5e791ff714 /kernel
parent840a0653100dbde599ae8ddf83fa214dfa5fd1aa (diff)
sched: Remove short cut from select_task_rq_fair()
select_task_rq_fair() incorrectly skips the wake_affine() logic, remove this. When prev_cpu == this_cpu, the code jumps straight to the wake_idle() logic, this doesn't give the wake_affine() logic the chance to pin the task to this cpu. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched_fair.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 2ff850f90d1..d7fda41ddaf 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1305,8 +1305,6 @@ static int select_task_rq_fair(struct task_struct *p, int sync)
1305 this_rq = cpu_rq(this_cpu); 1305 this_rq = cpu_rq(this_cpu);
1306 new_cpu = prev_cpu; 1306 new_cpu = prev_cpu;
1307 1307
1308 if (prev_cpu == this_cpu)
1309 goto out;
1310 /* 1308 /*
1311 * 'this_sd' is the first domain that both 1309 * 'this_sd' is the first domain that both
1312 * this_cpu and prev_cpu are present in: 1310 * this_cpu and prev_cpu are present in: