[PATCH] Allow flatmem to be disabled when only sparsemem is implemented

From: Anton Blanchard
Date: Fri Nov 11 2005 - 11:09:15 EST



Hi Andy,

What do you think about this?

Anton

--

On architectures that implement sparsemem but not discontigmem we want
to be able to hide the flatmem option in some cases. On ppc64 for
example, when we select NUMA we must not select flatmem.

Signed-off-by: Anton Blanchard <anton@xxxxxxxxx>
---

Index: build/mm/Kconfig
===================================================================
--- build.orig/mm/Kconfig 2005-11-11 11:31:38.000000000 +1100
+++ build/mm/Kconfig 2005-11-11 11:41:55.000000000 +1100
@@ -11,7 +11,7 @@

config FLATMEM_MANUAL
bool "Flat Memory"
- depends on !ARCH_DISCONTIGMEM_ENABLE || ARCH_FLATMEM_ENABLE
+ depends on !(ARCH_DISCONTIGMEM_ENABLE || ARCH_SPARSEMEM_ENABLE) || ARCH_FLATMEM_ENABLE
help
This option allows you to change some of the ways that
Linux manages its memory internally. Most users will
-
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/