On Mon, Jul 15, 2013 at 11:20 PM, Mel Gorman <mgor...@suse.de> wrote: > + > +static int task_numa_find_cpu(struct task_struct *p, int nid) > +{ > + int node_cpu = cpumask_first(cpumask_of_node(nid)); [...] > > + /* No harm being optimistic */ > + if (idle_cpu(node_cpu)) > + return node_cpu; > [...] > + for_each_cpu(cpu, cpumask_of_node(nid)) { > + dst_load = target_load(cpu, idx); > + > + /* If the CPU is idle, use it */ > + if (!dst_load) > + return dst_cpu; > + Here you want cpu, instead of dst_cpu, I guess. -- 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/
- Re: [PATCH 02/18] sched: Track NUMA hinting faults ... Peter Zijlstra
- [PATCH 10/18] sched: Increase NUMA PTE scanning when a n... Mel Gorman
- [PATCH 15/18] sched: Set preferred NUMA node based on nu... Mel Gorman
- [PATCH 18/18] sched: Swap tasks when reschuling if a CPU... Mel Gorman
- Re: [PATCH 18/18] sched: Swap tasks when reschuling... Peter Zijlstra
- [PATCH 16/18] sched: Avoid overloading CPUs on a preferr... Mel Gorman
- Re: [PATCH 16/18] sched: Avoid overloading CPUs on ... Peter Zijlstra
- Re: [PATCH 16/18] sched: Avoid overloading CPUs... Mel Gorman
- Re: [PATCH 16/18] sched: Avoid overloading ... Peter Zijlstra
- Re: [PATCH 16/18] sched: Avoid overloading CPUs on ... Hillf Danton
- Re: [PATCH 16/18] sched: Avoid overloading CPUs on ... Peter Zijlstra
- Re: [PATCH 0/18] Basic scheduler support for automatic N... Peter Zijlstra
- Re: [PATCH 0/18] Basic scheduler support for automatic N... Srikar Dronamraju