No point to migrate task from node A to node A.

Signed-off-by: Hillf Danton <dhi...@gmail.com>
---

--- a/kernel/sched/fair.c       Sat Nov 17 12:25:44 2012
+++ b/kernel/sched/fair.c       Sat Nov 17 12:25:54 2012
@@ -891,6 +891,8 @@ static void task_numa_find_placement(str
        /* Examine a task on every other node */
        for_each_online_node(nid) {
                int cpu;
+               if (nid == this_nid)
+                       continue;
                for_each_cpu_and(cpu, cpumask_of_node(nid), allowed) {
                        struct rq *rq;
                        struct mm_struct *other_mm;
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to