]> git.hungrycats.org Git - linux/commit
[PATCH] Create nodemask_t
authorMatthew Dobson <colpatch@us.ibm.com>
Tue, 19 Oct 2004 00:58:00 +0000 (17:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 00:58:00 +0000 (17:58 -0700)
commit593564660d9da4ebe34bb6352c68ddfca8d73fa1
treea8c8e50e28f2f85a3723d573569e039b443cd291
parent66d5cab9f5225a0fe501305016129110d580d688
[PATCH] Create nodemask_t

The idea behind this patch is to create a nodemask_t as a node analog of
cpumask_t.  As NUMA machines become more common, the need for a standard,
cross-platform bitmap of both online & possible nodes becomes more
apparent.  We believe we've worked out most of the kinks of the variable
length bitmap types with the recent cpumask_t patches.  Nodemasks are also
currently far less widespread than cpumasks.  Further, inclusion at this
point in the kernel would mean consistency in node handling between 2.6 and
2.7.

Future goals would be to get rid of the 'numnodes' variable used to count
the number of online nodes, and replace with node_online_map.  This would
allow arbitrary node numbering and facilitate node hotplugging.

(Nothing actually uses this yet, but several projects need it, and it does
model a well-defined physical grouping).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 files changed:
arch/i386/kernel/numaq.c
arch/i386/kernel/srat.c
arch/i386/mach-default/topology.c
arch/i386/mm/discontig.c
arch/ia64/kernel/acpi.c
arch/ia64/mm/discontig.c
arch/ppc64/kernel/sysfs.c
arch/ppc64/mm/numa.c
arch/x86_64/mm/k8topology.c
arch/x86_64/mm/numa.c
include/asm-i386/cpu.h
include/asm-i386/node.h
include/asm-x86_64/numa.h
include/linux/mmzone.h
include/linux/nodemask.h [new file with mode: 0644]
mm/mempolicy.c
mm/page_alloc.c