Sparsemem on EP93XX

Christian Gagneraud cgagneraud at techworks.ie
Sat Oct 3 16:07:01 EDT 2009


Russell King - ARM Linux wrote:
> 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

Yeah!!! It works now! :)

Thank you very much!

Chris.

> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel




More information about the linux-arm-kernel mailing list