]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
memblock: Expose MEMBLOCK_ALLOC_ANYWHERE
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 6 Jul 2010 22:39:00 +0000 (15:39 -0700)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Aug 2010 02:56:06 +0000 (12:56 +1000)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hash_utils_64.c
include/linux/memblock.h
mm/memblock.c

index 4072b871497da1fbbc3d9ecab875c704ed96bdb2..a542ff5ec8a989ef80059f8866ba0601479aadb8 100644 (file)
@@ -625,7 +625,7 @@ static void __init htab_initialize(void)
                if (machine_is(cell))
                        limit = 0x80000000;
                else
-                       limit = 0;
+                       limit = MEMBLOCK_ALLOC_ANYWHERE;
 
                table = memblock_alloc_base(htab_size_bytes, htab_size_bytes, limit);
 
index 367dea6e95a0a6c31a2482aa5393cb76e95a1a1a..3cf3304e901df20259123610fd3e9516eb68b023 100644 (file)
@@ -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_base(u64 size,
                u64, u64 max_addr);
+#define MEMBLOCK_ALLOC_ANYWHERE        0
 extern u64 __init __memblock_alloc_base(u64 size,
                u64 align, u64 max_addr);
 extern u64 __init memblock_phys_mem_size(void);
index e264e8c7089295f71651382e28674ce94f7fae03..0131684c42f80befe9816a84da18aacb98f7daf3 100644 (file)
@@ -15,8 +15,6 @@
 #include <linux/bitops.h>
 #include <linux/memblock.h>
 
-#define MEMBLOCK_ALLOC_ANYWHERE        0
-
 struct memblock memblock;
 
 static int memblock_debug;