[PATCH 06/25] lmb: Expose LMB_ALLOC_ANYWHERE
From: Benjamin Herrenschmidt
Date: Mon May 10 2010 - 06:02:13 EST
Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
---
arch/powerpc/mm/hash_utils_64.c | 2 +-
include/linux/lmb.h | 1 +
lib/lmb.c | 2 --
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index 2fdeedf..28838e3 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -625,7 +625,7 @@ static void __init htab_initialize(void)
if (machine_is(cell))
limit = 0x80000000;
else
- limit = 0;
+ limit = LMB_ALLOC_ANYWHERE;
table = lmb_alloc_base(htab_size_bytes, htab_size_bytes, limit);
diff --git a/include/linux/lmb.h b/include/linux/lmb.h
index 9caa67a..f0d2cab 100644
--- a/include/linux/lmb.h
+++ b/include/linux/lmb.h
@@ -50,6 +50,7 @@ extern u64 __init lmb_alloc_nid(u64 size, u64 align, int nid);
extern u64 __init lmb_alloc(u64 size, u64 align);
extern u64 __init lmb_alloc_base(u64 size,
u64, u64 max_addr);
+#define LMB_ALLOC_ANYWHERE 0
extern u64 __init __lmb_alloc_base(u64 size,
u64 align, u64 max_addr);
extern u64 __init lmb_phys_mem_size(void);
diff --git a/lib/lmb.c b/lib/lmb.c
index 00d5808..bd81266 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -15,8 +15,6 @@
#include <linux/bitops.h>
#include <linux/lmb.h>
-#define LMB_ALLOC_ANYWHERE 0
-
struct lmb lmb;
static int lmb_debug;
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/