linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: cgagneraud@techworks.ie (Christian Gagneraud)
To: linux-arm-kernel@lists.infradead.org
Subject: Sparsemem  on EP93XX
Date: Sat, 03 Oct 2009 21:07:01 +0100	[thread overview]
Message-ID: <4AC7AEE5.5070707@techworks.ie> (raw)
In-Reply-To: <20091003195426.GB21857@n2100.arm.linux.org.uk>

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

  reply	other threads:[~2009-10-03 20:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-03 19:19 Sparsemem on EP93XX Christian Gagneraud
2009-10-03 19:41 ` Russell King - ARM Linux
2009-10-03 19:49   ` Christian Gagneraud
2009-10-03 19:54     ` Russell King - ARM Linux
2009-10-03 20:07       ` Christian Gagneraud [this message]
2009-10-03 19:55   ` Christian Gagneraud
2009-10-03 20:00     ` Russell King - ARM Linux
2009-10-03 20:06       ` Christian Gagneraud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AC7AEE5.5070707@techworks.ie \
    --to=cgagneraud@techworks.ie \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).