x86, memblock: Add memblock_x86_find_in_range_node()
authorYinghai Lu <yinghai@kernel.org>
Wed, 25 Aug 2010 20:39:16 +0000 (13:39 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 27 Aug 2010 18:10:57 +0000 (11:10 -0700)
commit6bcc8176d07f108da3b1af17fb2c0e82c80e948e
tree8e9f969a3e55e32180a45bac701dc56512da1ac6
parentedbe7d23b4482e7f33179290bcff3b1feae1c5f3
x86, memblock: Add memblock_x86_find_in_range_node()

It can be used to find NODE_DATA for numa.

Need to make sure early_node_map[] is filled before it is called, otherwise
it will fallback to memblock_find_in_range(), with node range.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/memblock.h
arch/x86/mm/memblock.c