linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Lameter <cl@linux.com>
To: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Cc: linux-mm@kvack.org, rientjes@google.com, anton@samba.org
Subject: Re: N_NORMAL on NUMA?
Date: Mon, 24 Feb 2014 13:45:55 -0600 (CST)	[thread overview]
Message-ID: <alpine.DEB.2.10.1402241345410.20839@nuc> (raw)
In-Reply-To: <20140221003027.GA12799@linux.vnet.ibm.com>

On Thu, 20 Feb 2014, Nishanth Aravamudan wrote:

> I'm confused by the following:
>
> /*
>  * Array of node states.
>  */
> nodemask_t node_states[NR_NODE_STATES] __read_mostly = {
>         [N_POSSIBLE] = NODE_MASK_ALL,
>         [N_ONLINE] = { { [0] = 1UL } },
> #ifndef CONFIG_NUMA
>         [N_NORMAL_MEMORY] = { { [0] = 1UL } },
> #ifdef CONFIG_HIGHMEM
>         [N_HIGH_MEMORY] = { { [0] = 1UL } },
> #endif
> #ifdef CONFIG_MOVABLE_NODE
>         [N_MEMORY] = { { [0] = 1UL } },
> #endif
>         [N_CPU] = { { [0] = 1UL } },
> #endif  /* NUMA */
> };
>
> Why are we checking for CONFIG_MOVABLE_NODE above when mm/Kconfig says:
>
> config MOVABLE_NODE
>         boolean "Enable to assign a node which has only movable memory"
>         depends on HAVE_MEMBLOCK
>         depends on NO_BOOTMEM
>         depends on X86_64
>         depends on NUMA
>
> ? Doesn't that mean that you can't have CONFIG_HAVE_MOVABLE_NODE without
> CONFIG_NUMA? But we're in a #ifndef CONFIG_NUMA block above...

Looks like a useless definition that can be removed then.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2014-02-24 19:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21  0:30 Nishanth Aravamudan
2014-02-24 19:45 ` Christoph Lameter [this message]

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=alpine.DEB.2.10.1402241345410.20839@nuc \
    --to=cl@linux.com \
    --cc=anton@samba.org \
    --cc=linux-mm@kvack.org \
    --cc=nacc@linux.vnet.ibm.com \
    --cc=rientjes@google.com \
    /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