Sparsemem on EP93XX

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Oct 3 15:54:26 EDT 2009


On Sat, Oct 03, 2009 at 08:49:01PM +0100, Christian Gagneraud wrote:
> # CONFIG_EXPERIMENTAL is not set
...
> CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
> CONFIG_ARCH_SPARSEMEM_ENABLE=y
> CONFIG_ARCH_SPARSEMEM_DEFAULT=y
> # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
> CONFIG_FLATMEM=y
> CONFIG_FLAT_NODE_MEM_MAP=y

So yes, flatmem is still enabled... because there's a condition missing
in mm/Kconfig.  Try this patch:

diff --git a/mm/Kconfig b/mm/Kconfig
index 2477607..95b2965 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -67,7 +67,7 @@ config DISCONTIGMEM
 
 config SPARSEMEM
 	def_bool y
-	depends on SPARSEMEM_MANUAL
+	depends on (!SELECT_MEMORY_MODEL && ARCH_SPARSEMEM_ENABLE) || SPARSEMEM_MANUAL
 
 config FLATMEM
 	def_bool y




More information about the linux-arm-kernel mailing list