memblock: Expose MEMBLOCK_ALLOC_ANYWHERE

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent c3f72b57
...@@ -625,7 +625,7 @@ static void __init htab_initialize(void) ...@@ -625,7 +625,7 @@ static void __init htab_initialize(void)
if (machine_is(cell)) if (machine_is(cell))
limit = 0x80000000; limit = 0x80000000;
else else
limit = 0; limit = MEMBLOCK_ALLOC_ANYWHERE;
table = memblock_alloc_base(htab_size_bytes, htab_size_bytes, limit); table = memblock_alloc_base(htab_size_bytes, htab_size_bytes, limit);
......
...@@ -50,6 +50,7 @@ extern u64 __init memblock_alloc_nid(u64 size, u64 align, int nid); ...@@ -50,6 +50,7 @@ extern u64 __init memblock_alloc_nid(u64 size, u64 align, int nid);
extern u64 __init memblock_alloc(u64 size, u64 align); extern u64 __init memblock_alloc(u64 size, u64 align);
extern u64 __init memblock_alloc_base(u64 size, extern u64 __init memblock_alloc_base(u64 size,
u64, u64 max_addr); u64, u64 max_addr);
#define MEMBLOCK_ALLOC_ANYWHERE 0
extern u64 __init __memblock_alloc_base(u64 size, extern u64 __init __memblock_alloc_base(u64 size,
u64 align, u64 max_addr); u64 align, u64 max_addr);
extern u64 __init memblock_phys_mem_size(void); extern u64 __init memblock_phys_mem_size(void);
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/memblock.h> #include <linux/memblock.h>
#define MEMBLOCK_ALLOC_ANYWHERE 0
struct memblock memblock; struct memblock memblock;
static int memblock_debug; static int memblock_debug;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment