diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-08-25 16:39:16 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-08-27 14:10:54 -0400 |
commit | edbe7d23b4482e7f33179290bcff3b1feae1c5f3 (patch) | |
tree | 2bf55fc2cb94e32fdd79018e9e04b55cbe8d49d9 /include/linux/mm.h | |
parent | 88ba088c18457caaf8d2e5f8d36becc731a3d4f6 (diff) |
memblock: Add find_memory_core_early()
According to node range in early_node_map[] with __memblock_find_in_range
to find free range.
Will be used by memblock_x86_find_in_range_node()
memblock_x86_find_in_range_node will be used to find right buffer for NODE_DATA
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index a2b48041b910..993e85f0afcb 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1164,6 +1164,8 @@ extern void free_bootmem_with_active_regions(int nid, | |||
1164 | unsigned long max_low_pfn); | 1164 | unsigned long max_low_pfn); |
1165 | int add_from_early_node_map(struct range *range, int az, | 1165 | int add_from_early_node_map(struct range *range, int az, |
1166 | int nr_range, int nid); | 1166 | int nr_range, int nid); |
1167 | u64 __init find_memory_core_early(int nid, u64 size, u64 align, | ||
1168 | u64 goal, u64 limit); | ||
1167 | void *__alloc_memory_core_early(int nodeid, u64 size, u64 align, | 1169 | void *__alloc_memory_core_early(int nodeid, u64 size, u64 align, |
1168 | u64 goal, u64 limit); | 1170 | u64 goal, u64 limit); |
1169 | typedef int (*work_fn_t)(unsigned long, unsigned long, void *); | 1171 | typedef int (*work_fn_t)(unsigned long, unsigned long, void *); |