]> 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>
Wed, 26 Sep 2012 01:33:00 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 06:37:55 +0000 (16:37 +1000)
commit1d3422832c85f78aa52b5fef5f8be64b7d308adc
treef19f91a8fcf7c0026055c382a75fb9d042fce96b
parent97543efe0179938e871384d175985aacd0e778cf
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