]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: make sparsemem more available
authorJeff Chua <jeff.chua.linux@gmail.com>
Wed, 6 Aug 2008 11:09:53 +0000 (19:09 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 Aug 2008 20:01:57 +0000 (22:01 +0200)
With CONFIG_X86_PC, I can set CONFIG_SPARSEMEM=y.

With CONFIG_X86_GENERICARCH, CONFIG_SPARSEMEM depends on CONFIG_NUMA.

I'm using the patch below to enable sparsemem instead of flatmem.
System booted and is running.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/Kconfig

index 7917962ab7ff2e481b7099b9152dd90a9c0eb44f..e2305c7d881b75534dabb3a48ea276d42b9c24ad 100644 (file)
@@ -1035,7 +1035,7 @@ config HAVE_ARCH_ALLOC_REMAP
 
 config ARCH_FLATMEM_ENABLE
        def_bool y
-       depends on X86_32 && ARCH_SELECT_MEMORY_MODEL && X86_PC && !NUMA
+       depends on X86_32 && ARCH_SELECT_MEMORY_MODEL && !NUMA
 
 config ARCH_DISCONTIGMEM_ENABLE
        def_bool y
@@ -1051,7 +1051,7 @@ config ARCH_SPARSEMEM_DEFAULT
 
 config ARCH_SPARSEMEM_ENABLE
        def_bool y
-       depends on X86_64 || NUMA || (EXPERIMENTAL && X86_PC)
+       depends on X86_64 || NUMA || (EXPERIMENTAL && X86_PC) || X86_GENERICARCH
        select SPARSEMEM_STATIC if X86_32
        select SPARSEMEM_VMEMMAP_ENABLE if X86_64