Signed-off-by: Andy Whitcroft Signed-off-by: Dave Hansen --- memhotplug-dave/arch/i386/Kconfig | 13 +++-- memhotplug-dave/arch/i386/kernel/setup.c | 4 + memhotplug-dave/arch/i386/mm/Makefile | 2 memhotplug-dave/arch/i386/mm/discontig.c | 37 +++++++++------- memhotplug-dave/arch/i386/mm/init.c | 10 ++-- memhotplug-dave/include/asm-i386/mmzone.h | 64 ++++++++++++++++++++--------- memhotplug-dave/include/asm-i386/page.h | 4 - memhotplug-dave/include/asm-i386/pgtable.h | 4 - 8 files changed, 85 insertions(+), 53 deletions(-) diff -puN arch/i386/Kconfig~B-sparse-160-sparsemem-i386 arch/i386/Kconfig --- memhotplug/arch/i386/Kconfig~B-sparse-160-sparsemem-i386 2005-02-17 15:25:39.000000000 -0800 +++ memhotplug-dave/arch/i386/Kconfig 2005-02-17 15:25:39.000000000 -0800 @@ -68,7 +68,7 @@ config X86_VOYAGER config X86_NUMAQ bool "NUMAQ (IBM/Sequent)" - select DISCONTIGMEM + #select DISCONTIGMEM select NUMA help This option is used for getting Linux to run on a (IBM/Sequent) NUMA @@ -759,11 +759,6 @@ comment "NUMA (NUMA-Q) requires SMP, 64G comment "NUMA (Summit) requires SMP, 64GB highmem support, ACPI" depends on X86_SUMMIT && (!HIGHMEM64G || !ACPI) -config DISCONTIGMEM - bool - depends on NUMA - default y - config HAVE_ARCH_BOOTMEM_NODE bool depends on NUMA @@ -774,6 +769,12 @@ config HAVE_ARCH_ALLOC_REMAP depends on NUMA default y +config ARCH_SPARSEMEM_DEFAULT + bool + depends on (X86_NUMAQ || X86_SUMMIT) + +source "mm/Kconfig" + config HIGHPTE bool "Allocate 3rd-level pagetables from highmem" depends on HIGHMEM4G || HIGHMEM64G diff -puN arch/i386/kernel/setup.c~B-sparse-160-sparsemem-i386 arch/i386/kernel/setup.c --- memhotplug/arch/i386/kernel/setup.c~B-sparse-160-sparsemem-i386 2005-02-17 15:25:39.000000000 -0800 +++ memhotplug-dave/arch/i386/kernel/setup.c 2005-02-17 15:25:39.000000000 -0800 @@ -41,6 +41,7 @@ #include #include #include +#include #include