]> git.hungrycats.org Git - linux/commit
[PATCH] Clean up MAX_NR_NODES/NUMNODES/etc. [2/5]
authorAndrew Morton <akpm@osdl.org>
Sun, 5 Oct 2003 04:02:01 +0000 (21:02 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 5 Oct 2003 04:02:01 +0000 (21:02 -0700)
commit5bdcf4f8dd3335e85eca4b86cdb6a71fd1bd6602
treedfd21fe5ac9fc291177799cc99a1eff2a32c7b8b
parentc72da22fc150508340eea30c261d645bdac11b59
[PATCH] Clean up MAX_NR_NODES/NUMNODES/etc. [2/5]

From: Matthew Dobson <colpatch@us.ibm.com>

Remove MAX_NR_NODES.  This value is only used in a couple of places, and
it's incorrectly used in all those places as far as I can tell.  Replace
with MAX_NUMNODES.  Create MAX_NODES_SHIFT and use this value to check
NODES_SHIFT is appropriate.  A possible future patch should make
MAX_NODES_SHIFT vary based on 32 vs.  64 bit archs.
arch/i386/kernel/smpboot.c
include/linux/mmzone.h
mm/page_alloc.c