From 65b039a8d68cf5dfa39841fd391ec8c0d6bd4011 Mon Sep 17 00:00:00 2001 From: Dave Hansen Date: Wed, 9 Mar 2005 16:30:46 -0800 Subject: [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 Signed-off-by: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/topology.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/linux') 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 #include #include - #include +#ifndef node_has_online_mem +#define node_has_online_mem(nid) (1) +#endif + #ifndef nr_cpus_node #define nr_cpus_node(node) \ ({ \ -- cgit v1.2.3