summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDave Hansen <haveblue@us.ibm.com>2005-03-09 16:30:46 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-03-09 16:30:46 -0800
commit65b039a8d68cf5dfa39841fd391ec8c0d6bd4011 (patch)
tree519e92c67429c95d41f8e4954cd8d404e8d22380 /include/linux
parent3c810c5057c4a15fe01a4a3de1b9de0f8a8ecc48 (diff)
[PATCH] x86: allow SRAT to parse empty nodes
This patch is to allow the booting of a numa srat base i386 system without requiring memory to be in all of it's nodes. It breaks the assumption that all nodes have memory during bootup. Signed-off-by: Keith Mannthey <kmannth@us.ibm.com> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/topology.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/topology.h b/include/linux/topology.h
index 295f4c05c7f5..d70e8972c67f 100644
--- a/include/linux/topology.h
+++ b/include/linux/topology.h
@@ -31,9 +31,12 @@
#include <linux/bitops.h>
#include <linux/mmzone.h>
#include <linux/smp.h>
-
#include <asm/topology.h>
+#ifndef node_has_online_mem
+#define node_has_online_mem(nid) (1)
+#endif
+
#ifndef nr_cpus_node
#define nr_cpus_node(node) \
({ \