diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-08-25 13:39:16 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-08-27 11:10:52 -0700 |
commit | 88ba088c18457caaf8d2e5f8d36becc731a3d4f6 (patch) | |
tree | 1b82b841333bf664b6f49a9d8bb15e44d4670ce4 /arch/x86/include | |
parent | 4d5cf86ce187c0d3a4cdf233ab0cc6526ccbe01f (diff) | |
download | op-kernel-dev-88ba088c18457caaf8d2e5f8d36becc731a3d4f6.zip op-kernel-dev-88ba088c18457caaf8d2e5f8d36becc731a3d4f6.tar.gz |
x86, memblock: Add memblock_x86_register_active_regions() and memblock_x86_hole_size()
memblock_x86_register_active_regions() will be used to fill early_node_map,
the result will be memblock.memory.region AND numa data
memblock_x86_hole_size will be used to find hole size on memblock.memory.region
with specified range.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/memblock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/memblock.h b/arch/x86/include/asm/memblock.h index 72639ce..16af28d 100644 --- a/arch/x86/include/asm/memblock.h +++ b/arch/x86/include/asm/memblock.h @@ -11,4 +11,8 @@ void memblock_x86_free_range(u64 start, u64 end); struct range; 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); + #endif |