Skip to content

Commit

Permalink
x86/mm/numa: Don't check if node is NUMA_NO_NODE
Browse files Browse the repository at this point in the history
If we aren't debugging per_cpu maps, the cpu's node is stored in
per_cpu variable numa_node.  If `node' is NUMA_NO_NODE, it means
the caller wants to clear the cpu's node.  So we should also
call set_cpu_numa_node() in this case.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Cc: Len Brown <len.brown@intel.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Wen Congyang authored and Ingo Molnar committed Feb 24, 2013
1 parent fb834c7 commit 942670d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ void __cpuinit numa_set_node(int cpu, int node)
#endif
per_cpu(x86_cpu_to_node_map, cpu) = node;

if (node != NUMA_NO_NODE)
set_cpu_numa_node(cpu, node);
set_cpu_numa_node(cpu, node);
}

void __cpuinit numa_clear_node(int cpu)
Expand Down

0 comments on commit 942670d

Please sign in to comment.