]> 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, 21 Sep 2012 00:57:04 +0000 (10:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:58:32 +0000 (15:58 +1000)
commit5f5460b55058f6c9740b2c6b645a7e99938e0a6b
treef4feb567608535ebbefe9936c204474ced21237a
parent74a11456d810b9c24089ab4ac05a71e1ea954ec3
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