]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] mm: allow LH7A40x to use sparsemem
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Wed, 1 Oct 2008 20:38:23 +0000 (21:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 1 Oct 2008 20:42:08 +0000 (21:42 +0100)
Enable Sparsemem support for LH7A40x SoCs, while still allowing the
existing discontig support for the time being.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/mach-lh7a40x/Kconfig
arch/arm/mach-lh7a40x/include/mach/memory.h

index ef218ea3010f328ef2e71cc6487ad1bb408858a8..f5bf38b5f38dbd3b16b09ae906f49c5ffa9ed5ef 100644 (file)
@@ -510,6 +510,8 @@ config ARCH_SHARK
 
 config ARCH_LH7A40X
        bool "Sharp LH7A40X"
+       select ARCH_DISCONTIGMEM_ENABLE if !LH7A40X_CONTIGMEM
+       select ARCH_SPARSEMEM_ENABLE if !LH7A40X_CONTIGMEM
        help
          Say Y here for systems based on one of the Sharp LH7A40X
          System on a Chip processors.  These CPUs include an ARM922T
@@ -842,12 +844,6 @@ config OABI_COMPAT
 # Discontigmem is deprecated
 config ARCH_DISCONTIGMEM_ENABLE
        bool
-       default (ARCH_LH7A40X && !LH7A40X_CONTIGMEM)
-       help
-         Say Y to support efficient handling of discontiguous physical memory,
-         for architectures which are either NUMA (Non-Uniform Memory Access)
-         or have huge holes in the physical address space for other reasons.
-         See <file:Documentation/vm/numa> for more.
 
 config ARCH_SPARSEMEM_ENABLE
        bool
index 6f4c6a1798c13ace0388cdef77df2427a17134c6..9be7466e346cdf152e13767242023e8a53c4c0c1 100644 (file)
@@ -40,23 +40,22 @@ config LPD7A40X_CPLD_SSP
        bool
 
 config LH7A40X_CONTIGMEM
-       bool "Disable NUMA Support"
-       depends on ARCH_LH7A40X
+       bool "Disable NUMA/SparseMEM Support"
        help
          Say Y here if your bootloader sets the SROMLL bit(s) in
          the SDRAM controller, organizing memory as a contiguous
-         array.  This option will disable CONFIG_DISCONTIGMEM and
-          force the kernel to manage all memory in one node.
+         array.  This option will disable sparse memory support
+          and force the kernel to manage all memory in one node.
 
-         Setting this option incorrectly may prevent the kernel from
-         booting.  It is OK to leave it N.
+         Setting this option incorrectly may prevent the kernel
+         from booting.  It is OK to leave it N.
 
          For more information, consult
            <file:Documentation/arm/Sharp-LH/SDRAM>.
 
 config LH7A40X_ONE_BANK_PER_NODE
        bool "Optimize NUMA Node Tables for Size"
-       depends on ARCH_LH7A40X && !LH7A40X_CONTIGMEM
+       depends on !LH7A40X_CONTIGMEM
        help
          Say Y here to produce compact memory node tables.  By
          default pairs of adjacent physical RAM banks are managed
index f7107b4c197a7ad4d143730138eea1d831f47371..1da14ff66c93e035dc448997d2d280104af5ebfc 100644 (file)
 
 #endif
 
+/*
+ * Sparsemem version of the above
+ */
+#define MAX_PHYSMEM_BITS       32
+#define SECTION_SIZE_BITS      24
+
 #endif