powerpc/numa: Fix bug in unmap_cpu_from_node
authorAnton Blanchard <anton@samba.org>
Sat, 29 Jan 2011 12:37:16 +0000 (12:37 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Feb 2011 02:06:06 +0000 (13:06 +1100)
commit429f4d8d20b91e4a6c239f951c06a56a6ac22957
treea769884691712169b7c1a109dd5eb744a2a12c53
parentfe5cfd63557b39007460d17c585b8dc5ed6ace93
powerpc/numa: Fix bug in unmap_cpu_from_node

When converting to the new cpumask code I screwed up:

-       if (cpu_isset(cpu, numa_cpumask_lookup_table[node])) {
-               cpu_clear(cpu, numa_cpumask_lookup_table[node]);
+       if (cpumask_test_cpu(cpu, node_to_cpumask_map[node])) {
+               cpumask_set_cpu(cpu, node_to_cpumask_map[node]);

This was introduced in commit 25863de07af9 (powerpc/cpumask: Convert NUMA code
to new cpumask API)

Fix it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: <stable@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c