]> git.baikalelectronics.ru Git - kernel.git/commit
x86, NUMA: Initialize and use remap allocator from setup_node_bootmem()
authorTejun Heo <tj@kernel.org>
Mon, 2 May 2011 12:18:54 +0000 (14:18 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 2 May 2011 12:18:54 +0000 (14:18 +0200)
commit57060e1339adff2cdf70a74fba200b2ca06b59c3
tree8ef77da9bd9b5491fadd6b01dd7de8fdf9d6eec5
parentc6015551cfb1ea1de8377215c4e94d47671e97c0
x86, NUMA: Initialize and use remap allocator from setup_node_bootmem()

setup_node_bootmem() is taken from 64bit and doesn't use remap
allocator.  It's about to be shared with 32bit so add support for it.
If NODE_DATA is remapped, it's noted in the debug message and node
locality check is skipped as the __pa() of the remapped address
doesn't reflect the actual physical address.

On 64bit, remap allocator becomes noop and doesn't affect the
behavior.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
arch/x86/mm/numa.c
arch/x86/mm/numa_32.c
arch/x86/mm/numa_internal.h