Start using mm/Kconfig for i386, use CONFIG_FLATMEM, and straighten out some NUMA vs. DISCONTIG config confusion. Signed-off-by: Andy Whitcroft Signed-off-by: Dave Hansen --- memhotplug-dave/arch/i386/Kconfig | 23 ++++++--- memhotplug-dave/arch/i386/kernel/setup.c | 4 + memhotplug-dave/arch/i386/mm/Makefile | 2 memhotplug-dave/arch/i386/mm/discontig.c | 35 ++++++++------ memhotplug-dave/arch/i386/mm/init.c | 10 ++-- memhotplug-dave/include/asm-i386/mmzone.h | 68 +++++++++++++++++++++-------- memhotplug-dave/include/asm-i386/page.h | 4 - memhotplug-dave/include/asm-i386/pgtable.h | 4 - 8 files changed, 98 insertions(+), 52 deletions(-) diff -puN arch/i386/Kconfig~B-sparse-160-sparsemem-i386 arch/i386/Kconfig --- memhotplug/arch/i386/Kconfig~B-sparse-160-sparsemem-i386 2005-03-11 10:52:25.000000000 -0800 +++ memhotplug-dave/arch/i386/Kconfig 2005-03-11 10:52:25.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 @@ -767,17 +767,12 @@ 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 default y -config HAVE_MEMORY_PRESENT +config ARCH_HAVE_MEMORY_PRESENT bool depends on DISCONTIGMEM default y @@ -792,6 +787,20 @@ config HAVE_ARCH_ALLOC_REMAP depends on NUMA default y +config ARCH_DISCONTIGMEM_ENABLE + def_bool y + depends on NUMA + +config ARCH_DISCONTIGMEM_DEFAULT + def_bool y + depends on NUMA + +config ARCH_SPARSEMEM_ENABLE + def_bool y + depends on NUMA + +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-03-11 10:52:25.000000000 -0800 +++ memhotplug-dave/arch/i386/kernel/setup.c 2005-03-11 10:52:25.000000000 -0800 @@ -41,6 +41,7 @@ #include #include #include +#include #include