summaryrefslogtreecommitdiff
path: root/include/asm-alpha
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-10-04 21:01:50 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-10-04 21:01:50 -0700
commitc72da22fc150508340eea30c261d645bdac11b59 (patch)
tree6ac6046ead523b3be5c47c0e197406d60e680788 /include/asm-alpha
parent96fcef0a0cf876713d6acc94751fa674edc66e16 (diff)
[PATCH] Clean up MAX_NR_NODES/NUMNODES/etc. [1/5]
From: Matthew Dobson <colpatch@us.ibm.com> This starts a series of cleanups against the way in which the various architectures specify the number of nodes and memory zones. We end up supporting up to 1024 memory zones on ia64, which is a recent requirement. Has been tested on ia32, ia64 (UMA), ppa64 (UMA) and NUMAQ. Make sure MAX_NUMNODES is defined in one and only one place. Remove superfluous definitions. Instead of defining MAX_NUMNODES in asm/numnodes.h, we define NODES_SHIFT there. Then in linux/mmzone.h we turn that NODES_SHIFT value into MAX_NUMNODES.
Diffstat (limited to 'include/asm-alpha')
-rw-r--r--include/asm-alpha/numnodes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-alpha/numnodes.h b/include/asm-alpha/numnodes.h
index 3c370ca3aaa6..cd425827e4f3 100644
--- a/include/asm-alpha/numnodes.h
+++ b/include/asm-alpha/numnodes.h
@@ -1,6 +1,7 @@
#ifndef _ASM_MAX_NUMNODES_H
#define _ASM_MAX_NUMNODES_H
-#define MAX_NUMNODES 128 /* Marvel */
+/* Max 128 Nodes - Marvel */
+#define NODES_SHIFT 7
#endif /* _ASM_MAX_NUMNODES_H */