diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-07-06 18:39:14 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-04 22:56:21 -0400 |
commit | d2cd563ba82c424083b78e0ce97d68bfb04d1242 (patch) | |
tree | ff4ab6de8b6906a6c955aa51c4ee53868dfafc0a /include/linux/memblock.h | |
parent | 142b45a72e221537c1bb1995497fef7cdc439e26 (diff) |
memblock: Add arch function to control coalescing of memblock memory regions
Some archs such as ARM want to avoid coalescing accross things such
as the lowmem/highmem boundary or similar. This provides the option
to control it via an arch callback for which a weak default is provided
which always allows coalescing.
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 150be938b910..e5e8f9db3a84 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -72,6 +72,8 @@ extern void memblock_dump_all(void); | |||
72 | 72 | ||
73 | /* Provided by the architecture */ | 73 | /* Provided by the architecture */ |
74 | extern phys_addr_t memblock_nid_range(phys_addr_t start, phys_addr_t end, int *nid); | 74 | extern phys_addr_t memblock_nid_range(phys_addr_t start, phys_addr_t end, int *nid); |
75 | extern int memblock_memory_can_coalesce(phys_addr_t addr1, phys_addr_t size1, | ||
76 | phys_addr_t addr2, phys_addr_t size2); | ||
75 | 77 | ||
76 | /** | 78 | /** |
77 | * memblock_set_current_limit - Set the current allocation limit to allow | 79 | * memblock_set_current_limit - Set the current allocation limit to allow |