]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86 numa: don't check if node is NUMA_NO_NODE
authorWen Congyang <wency@cn.fujitsu.com>
Thu, 25 Oct 2012 01:14:40 +0000 (12:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 2 Nov 2012 05:00:42 +0000 (16:00 +1100)
commitcdf7e76fe5cdc4892de3b08f74afba5203d5c6e5
tree8e6e845e099eff0140068e0fc47307274af3ab21
parentd35748042503bbe8a1f82b5aa3ee9b1952e728d3
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