
Before this patch, the sparse code is only hooked into the NUMA
subarchitectures.  This patch makes sure that normal, contiguous
systems get their memory put into sparse correctly.  This allows
for fake memory hotplug.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
---

 memhotplug-dave/arch/i386/kernel/setup.c |    9 +++++++++
 1 files changed, 9 insertions(+)

diff -puN arch/i386/kernel/setup.c~Y4-B-sparse-162-memory_present-for-contig-systems-FIXME arch/i386/kernel/setup.c
--- memhotplug/arch/i386/kernel/setup.c~Y4-B-sparse-162-memory_present-for-contig-systems-FIXME	2005-04-13 14:21:19.000000000 -0700
+++ memhotplug-dave/arch/i386/kernel/setup.c	2005-04-13 14:21:19.000000000 -0700
@@ -1051,6 +1051,15 @@ static unsigned long __init setup_memory
 
 	setup_bootmem_allocator();
 
+	/*
+	 * This will only work for contiguous memory systems.
+	 *
+	 * Leave the evil #ifdef as a big FIXME until you do
+	 * this properly
+	 */
+#ifdef CONFIG_SPARSEMEM
+	memory_present(/*node*/0, /*start_pfn*/0, max_pfn);
+#endif
 	return max_low_pfn;
 }
 
_
