]> git.hungrycats.org Git - linux/commit
[PATCH] node enumeration fixes
authorAndrew Morton <akpm@osdl.org>
Sun, 5 Oct 2003 04:02:51 +0000 (21:02 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 5 Oct 2003 04:02:51 +0000 (21:02 -0700)
commitca8878630bcd0467c21228f2d13f7b8a6649c612
tree1f8d32fc28f7e4061312ec31c4fd835796845f45
parentd513558012a8cac3c48b485eb9fa76fba8b6f795
[PATCH] node enumeration fixes

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

Here's a small update to the numnodes fix that went into -mm3.  The biggest
changes are:

1) move the actual NODES_SHIFT and MAX_NUMNODES definitions into
   linux/numa.h and include this in linux/mmzone.h, instead of being
   directly in linux/mmzone.h.  This allows other files to include *just*
   the NUMNODES stuff w/out grabbing all of mmzone.h.

2) pull NODE_SHIFT out of linux/mm.h.  This isn't used anywhere in the
   kernel, and it will only get confused with NODES_SHIFT.

3) Fix the IA64 patch.  The original patch I had sent out hadn't been
   tested on IA64.  It was mostly right, but there were circular
   dependencies.  All better now, and acked by Jesse.

4) In linux/mmzone.h, insert code to define MAX_NODES_SHIFT based on the
   size of unsigned long.  For 64-bit arches, we can have a much larger
   value.  This allows IA64 to have 100's or 1000's of nodes.
   MAX_NODES_SHIFT is defined as 10 (ie: 1024 nodes) for 64-bit for now,
   although it could likely be much larger.  For 32-bit it is 6 (ie: 64
   nodes).

5) Small cleanup in include/asm-arm/memory.h.  Mostly the result of the
   new linux/numa.h file.  Much cleaner and more readable now.
include/asm-arm/memory.h
include/asm-ia64/nodedata.h
include/asm-ia64/numa.h
include/asm-ia64/sn/pda.h
include/linux/mm.h
include/linux/mmzone.h
include/linux/numa.h [new file with mode: 0644]