LWN.net Logo

Replace 'numnodes' with 'node_online_map'

From:  Matthew Dobson <colpatch@us.ibm.com>
To:  LKML <linux-kernel@vger.kernel.org>, LSE Tech <lse-tech@lists.sourceforge.net>, Andrew Morton <akpm@osdl.org>
Subject:  [RFC PATCH 0/10] Replace 'numnodes' with 'node_online_map'
Date:  Thu, 23 Dec 2004 13:51:52 -0800

The next 10 messages will contain 10 patches to remove the global
variable 'numnodes' and replace it's use with manipulations of
'node_online_map'.  This will remove the requirement that nodes be
numbered sequentially [0 ... (numnodes-1)] with no gaps in the
numbering.  The removal of this requirement will facilitate node HotPlug
as well as remove the need for some of the arch-specific node
renumbering schemes in the kernel.  Several architectures have to map
their native node numbers to 'Linux' node numbers, and I hope that some
of this may be removed now.

The following 10 patches replace numnodes in arch-independent code and
the 9 architectures that reference numnodes (alpha, arm, i386, ia64,
m32r, mips, parisc, ppc64, & x86_64).  A rollup patch has been lightly
tested (aka: booted) on x86 & ppc64.

Cheers!

-Matt

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2004, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds