diff -Naurp linux-2.6.9-rc3-wake_idle/kernel/sched.c linux-2.6.9-rc3-wake_idle-can_migrate/kernel/sched.c --- linux-2.6.9-rc3-wake_idle/kernel/sched.c 2004-10-11 00:57:28.590909272 -0700 +++ linux-2.6.9-rc3-wake_idle-can_migrate/kernel/sched.c 2004-10-11 01:11:58.016917328 -0700 @@ -1780,14 +1780,8 @@ int can_migrate_task(task_t *p, runqueue return 0; if (!cpu_isset(this_cpu, p->cpus_allowed)) return 0; - - /* Aggressive migration if we've failed balancing */ - if (idle == NEWLY_IDLE || - sd->nr_balance_failed < sd->cache_nice_tries) { - if (task_hot(p, rq->timestamp_last_tick, sd)) - return 0; - } - + if (idle == NOT_IDLE && task_hot(p, rq->timestamp_last_tick, sd)) + return 0; return 1; }