]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Support variable page sizes on nommu.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 3 Jun 2008 09:52:11 +0000 (18:52 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jul 2008 09:10:28 +0000 (18:10 +0900)
PAGE_SIZE doesn't need to be fixed at 4096 on nommu, so stub in a !MMU
case for the various PAGE_SIZE Kconfig options.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/Kconfig

index 5fd218430b19a9e1b91fc17c6f75d4650cf40142..5267c434d6eb790fb3d858a02ccbb734ccc4da02 100644 (file)
@@ -145,19 +145,19 @@ choice
 
 config PAGE_SIZE_4KB
        bool "4kB"
-       depends on !X2TLB
+       depends on !MMU || !X2TLB
        help
          This is the default page size used by all SuperH CPUs.
 
 config PAGE_SIZE_8KB
        bool "8kB"
-       depends on X2TLB
+       depends on !MMU || X2TLB
        help
          This enables 8kB pages as supported by SH-X2 and later MMUs.
 
 config PAGE_SIZE_64KB
        bool "64kB"
-       depends on CPU_SH4 || CPU_SH5
+       depends on !MMU || CPU_SH4 || CPU_SH5
        help
          This enables support for 64kB pages, possible on all SH-4
          CPUs and later.