diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-08-25 22:39:17 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-08-27 20:11:30 +0200 |
commit | e82d42be24bd5d75bf6f81045636e6ca95ab55f2 (patch) | |
tree | ae35d2fdb08c9ddd500bbde67e462a2f47399a98 /arch/x86/include/asm/memblock.h | |
parent | x86, memblock: Add memblock_x86_free_memory_in_range() (diff) | |
download | linux-e82d42be24bd5d75bf6f81045636e6ca95ab55f2.tar.xz linux-e82d42be24bd5d75bf6f81045636e6ca95ab55f2.zip |
x86, memblock: Add memblock_x86_memory_in_range()
It will return memory size in specified range according to memblock.memory.region
Try to share some code with memblock_x86_free_memory_in_range() by passing get_free to
__memblock_x86_memory_in_range().
-v2: Ben want _in_range in the name instead of size
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/memblock.h b/arch/x86/include/asm/memblock.h index fc3c230812e6..2c304bb6e072 100644 --- a/arch/x86/include/asm/memblock.h +++ b/arch/x86/include/asm/memblock.h @@ -16,5 +16,6 @@ void memblock_x86_register_active_regions(int nid, unsigned long start_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); u64 memblock_x86_free_memory_in_range(u64 addr, u64 limit); +u64 memblock_x86_memory_in_range(u64 addr, u64 limit); #endif |