summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/memblock.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-08-25 20:39:16 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2010-08-27 18:10:57 (GMT)
commit6bcc8176d07f108da3b1af17fb2c0e82c80e948e (patch)
tree8e9f969a3e55e32180a45bac701dc56512da1ac6 /arch/x86/include/asm/memblock.h
parentedbe7d23b4482e7f33179290bcff3b1feae1c5f3 (diff)
downloadlinux-fsl-qoriq-6bcc8176d07f108da3b1af17fb2c0e82c80e948e.tar.xz
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>
Diffstat (limited to 'arch/x86/include/asm/memblock.h')
-rw-r--r--arch/x86/include/asm/memblock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/memblock.h b/arch/x86/include/asm/memblock.h
index 16af28d..3a86b10 100644
--- a/arch/x86/include/asm/memblock.h
+++ b/arch/x86/include/asm/memblock.h
@@ -14,5 +14,6 @@ int get_free_all_memory_range(struct range **rangep, int nodeid);
void memblock_x86_register_active_regions(int nid, unsigned long start_pfn,
unsigned long last_pfn);
u64 memblock_x86_hole_size(u64 start, u64 end);
+u64 memblock_x86_find_in_range_node(int nid, u64 start, u64 end, u64 size, u64 align);
#endif