]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86 numa: don't check if node is NUMA_NO_NODE
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 28 Sep 2012 00:18:51 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Oct 2012 02:57:35 +0000 (13:57 +1100)
commite3ade46d5901094722ce98e09aca9b0186fc7902
treeccd159dfdee71d527fc13a9739b0aba16eaf6290
parent4c24a397de2b326d7364b5c298f145c912e40fab
x86 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: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/mm/numa.c