diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-04 14:38:47 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-04 14:38:47 +1000 |
commit | 72d4b0b4e0e7fa858767e03972771a9f7c02b689 (patch) | |
tree | 5cdf39edb6edbaa7f75da27ad1d9ce7864bb9448 /include/linux/memblock.h | |
parent | 411a25a80da328f5ae6b6c037872ffe867fcc130 (diff) | |
download | linux-72d4b0b4e0e7fa858767e03972771a9f7c02b689.tar.gz linux-72d4b0b4e0e7fa858767e03972771a9f7c02b689.tar.bz2 linux-72d4b0b4e0e7fa858767e03972771a9f7c02b689.zip |
memblock: Implement memblock_is_memory and memblock_is_region_memory
To make it fast, we steal ARM's binary search for memblock_is_memory()
and we use that to also the replace existing implementation of
memblock_is_reserved().
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 4b6931327b22..47bceb187058 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -56,6 +56,8 @@ extern u64 __init __memblock_alloc_base(u64 size, extern u64 __init memblock_phys_mem_size(void); extern u64 memblock_end_of_DRAM(void); extern void __init memblock_enforce_memory_limit(u64 memory_limit); +extern int memblock_is_memory(u64 addr); +extern int memblock_is_region_memory(u64 base, u64 size); extern int __init memblock_is_reserved(u64 addr); extern int memblock_is_region_reserved(u64 base, u64 size); extern int memblock_find(struct memblock_region *res); |