aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorDmitry Adamushko <dmitry.adamushko@gmail.com>2008-01-25 15:08:21 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-25 15:08:21 -0500
commit9ec3b77e11b9398ab40b492c4fde7d8aac04a718 (patch)
tree50045d0ddae170feea69e097e54b8c019aa81681 /kernel/sched_fair.c
parent32525d022ad52a5c14e80e130260431e16e294b6 (diff)
sched: no need for 'affine wakeup' balancing
No need to do a check for 'affine wakeup and passive balancing possibilities' in select_task_rq_fair() when task_cpu(p) == this_cpu. I guess, this part got missed upon introduction of per-sched_class select_task_rq() in try_to_wake_up(). Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index f881fc5e035c..2208692dc4a0 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -925,6 +925,9 @@ static int select_task_rq_fair(struct task_struct *p, int sync)
925 this_cpu = smp_processor_id(); 925 this_cpu = smp_processor_id();
926 new_cpu = cpu; 926 new_cpu = cpu;
927 927
928 if (cpu == this_cpu)
929 goto out_set_cpu;
930
928 for_each_domain(this_cpu, sd) { 931 for_each_domain(this_cpu, sd) {
929 if (cpu_isset(cpu, sd->span)) { 932 if (cpu_isset(cpu, sd->span)) {
930 this_sd = sd; 933 this_sd = sd;