x86-64, NUMA: simplify nodedata allocation
authorTejun Heo <tj@kernel.org>
Mon, 2 May 2011 12:18:51 +0000 (14:18 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 2 May 2011 12:18:51 +0000 (14:18 +0200)
commitacd26d611e60c1a7c2a14269ab99760f779121f4
tree1ba64ef16bbf1f50226c9b48003743f0e8f141d0
parentebe685f24eeb85fbdb0f33792f1dabdbf35eff38
x86-64, NUMA: simplify nodedata allocation

With top-down memblock allocation, the allocation range limits in
ealry_node_mem() can be simplified - try node-local first, then any
node but in any case don't allocate below DMA limit.

Remove early_node_mem() and implement simplified allocation directly
in setup_node_bootmem().

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_64.c