diff options
author | Wen Congyang <wency@cn.fujitsu.com> | 2013-02-23 00:11:47 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-02-24 13:01:43 +0100 |
commit | 942670d0dc41b5fe9b735c31ca9234d80729bf7e (patch) | |
tree | 6817e1bd36683f3edfbca689611e318b8a07e5e1 /arch/x86/mm | |
parent | x86, efi: Make "noefi" really disable EFI runtime serivces (diff) | |
download | linux-942670d0dc41b5fe9b735c31ca9234d80729bf7e.tar.xz linux-942670d0dc41b5fe9b735c31ca9234d80729bf7e.zip |
x86/mm/numa: Don't check if node is NUMA_NO_NODE
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>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/numa.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index 2d125be1bae9..21d02f0d7a2c 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c @@ -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) |