diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-08-26 00:39:15 +0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-08-27 22:10:41 +0400 |
commit | 9dc5d569c133819c1ce069ebb1d771c62de32580 (patch) | |
tree | 8040a307b9b448d092dfd7ef8f56fc6b08d26cab /arch/x86/include/asm/memblock.h | |
parent | 27de794365786b4cdc3461ed4e23af2a33f40612 (diff) | |
download | linux-9dc5d569c133819c1ce069ebb1d771c62de32580.tar.xz |
x86, memblock: Add memblock_x86_reserve_range/memblock_x86_free_range
They are wrappers for core versions, which take start/end/name instead
of base/size. This will make x86 conversion eaasier.
could add more debug print out
-v2: change get_max_mapped() to memblock.default_alloc_limit according to Michael
Ellerman and Ben
change to memblock_x86_reserve_range and memblock_x86_free_range according to Michael Ellerman
-v3: call check_and_double after reserve/free, so could avoid to use
find_memblock_area. Suggested by Michael Ellerman
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <michael@ellerman.id.au>
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/memblock.h b/arch/x86/include/asm/memblock.h index 69cf853e9319..e11ddf059fa1 100644 --- a/arch/x86/include/asm/memblock.h +++ b/arch/x86/include/asm/memblock.h @@ -6,4 +6,7 @@ u64 memblock_x86_find_in_range_size(u64 start, u64 *sizep, u64 align); void memblock_x86_to_bootmem(u64 start, u64 end); +void memblock_x86_reserve_range(u64 start, u64 end, char *name); +void memblock_x86_free_range(u64 start, u64 end); + #endif |