From: Dmitry Adamushko Date: Fri, 25 Jan 2008 20:08:21 +0000 (+0100) Subject: sched: no need for 'affine wakeup' balancing X-Git-Tag: v2.6.25-rc1~1237^2~45 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9ec3b77e11b9398ab40b492c4fde7d8aac04a718;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index f881fc5e035..2208692dc4a 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) this_cpu = smp_processor_id(); new_cpu = cpu; + if (cpu == this_cpu) + goto out_set_cpu; + for_each_domain(this_cpu, sd) { if (cpu_isset(cpu, sd->span)) { this_sd = sd;