diff options
| author | Dave Hansen <haveblue@us.ibm.com> | 2005-03-09 16:30:46 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-09 16:30:46 -0800 |
| commit | 65b039a8d68cf5dfa39841fd391ec8c0d6bd4011 (patch) | |
| tree | 519e92c67429c95d41f8e4954cd8d404e8d22380 /include | |
| parent | 3c810c5057c4a15fe01a4a3de1b9de0f8a8ecc48 (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')
| -rw-r--r-- | include/asm-i386/topology.h | 6 | ||||
| -rw-r--r-- | include/linux/topology.h | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/asm-i386/topology.h b/include/asm-i386/topology.h index dcbed87f1c71..63e5cfc3ee6c 100644 --- a/include/asm-i386/topology.h +++ b/include/asm-i386/topology.h @@ -88,6 +88,12 @@ static inline cpumask_t pcibus_to_cpumask(int bus) .nr_balance_failed = 0, \ } +extern unsigned long node_start_pfn[]; +extern unsigned long node_end_pfn[]; +extern unsigned long node_remap_size[]; + +#define node_has_online_mem(nid) (node_start_pfn[nid] != node_end_pfn[nid]) + #else /* !CONFIG_NUMA */ /* * Other i386 platforms should define their own version of the 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) \ ({ \ |
