diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-07-28 01:38:40 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-04 22:56:34 -0400 |
commit | 5303b68f57c227c27193a14e57dd12be27cd670f (patch) | |
tree | a7a217f9e3385b2f721cc2ec7ef3413577264e08 /include/linux/memblock.h | |
parent | 10d0643988e976360eb3497dcafb55b393b8e480 (diff) |
memblock: Add memblock_find_in_range()
This is a wrapper for memblock_find_base() using slightly different
arguments (start,end instead of start,size for example) in order to
make it easier to convert existing arch/x86 code.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r-- | include/linux/memblock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 3978e6a8e824..4df09bdcae42 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -47,6 +47,8 @@ extern int memblock_can_resize; | |||
47 | #define memblock_dbg(fmt, ...) \ | 47 | #define memblock_dbg(fmt, ...) \ |
48 | if (memblock_debug) printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | 48 | if (memblock_debug) printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) |
49 | 49 | ||
50 | u64 memblock_find_in_range(u64 start, u64 end, u64 size, u64 align); | ||
51 | |||
50 | extern void __init memblock_init(void); | 52 | extern void __init memblock_init(void); |
51 | extern void __init memblock_analyze(void); | 53 | extern void __init memblock_analyze(void); |
52 | extern long memblock_add(phys_addr_t base, phys_addr_t size); | 54 | extern long memblock_add(phys_addr_t base, phys_addr_t size); |