diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-09-26 21:47:00 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-09-26 21:47:00 -0400 |
commit | 4d2cab7c00ebf5c12c3177763fed5a6b4658d384 (patch) | |
tree | 9862eb322bec6e24f3ef0645c57fc2a03682195b /arch/sh/mm/Kconfig | |
parent | 26fad19d8c3ca9abd7ffb85a63f8e25f1b4910dc (diff) |
sh: Disable 4kB pages on extended mode TLB.
4kB pages are unstable on extended mode TLB, it's recommended
that TLB compat mode be used when using a 4kB PAGE_SIZE. Set
the default for extended mode to 8kB.
This should have negligible impact, as other than the extra swap
cache entry bits, there's no reason to use the extended mode TLB
with 4kB pages.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/Kconfig')
-rw-r--r-- | arch/sh/mm/Kconfig | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index a953989ada47..d186c5067fad 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -336,25 +336,27 @@ config ARCH_MEMORY_PROBE | |||
336 | 336 | ||
337 | choice | 337 | choice |
338 | prompt "Kernel page size" | 338 | prompt "Kernel page size" |
339 | default PAGE_SIZE_8KB if X2TLB | ||
339 | default PAGE_SIZE_4KB | 340 | default PAGE_SIZE_4KB |
340 | 341 | ||
341 | config PAGE_SIZE_4KB | 342 | config PAGE_SIZE_4KB |
342 | bool "4kB" | 343 | bool "4kB" |
344 | depends on !X2TLB | ||
343 | help | 345 | help |
344 | This is the default page size used by all SuperH CPUs. | 346 | This is the default page size used by all SuperH CPUs. |
345 | 347 | ||
346 | config PAGE_SIZE_8KB | 348 | config PAGE_SIZE_8KB |
347 | bool "8kB" | 349 | bool "8kB" |
348 | depends on EXPERIMENTAL && X2TLB | 350 | depends on X2TLB |
349 | help | 351 | help |
350 | This enables 8kB pages as supported by SH-X2 and later MMUs. | 352 | This enables 8kB pages as supported by SH-X2 and later MMUs. |
351 | 353 | ||
352 | config PAGE_SIZE_64KB | 354 | config PAGE_SIZE_64KB |
353 | bool "64kB" | 355 | bool "64kB" |
354 | depends on EXPERIMENTAL && CPU_SH4 | 356 | depends on CPU_SH4 |
355 | help | 357 | help |
356 | This enables support for 64kB pages, possible on all SH-4 | 358 | This enables support for 64kB pages, possible on all SH-4 |
357 | CPUs and later. Highly experimental, not recommended. | 359 | CPUs and later. |
358 | 360 | ||
359 | endchoice | 361 | endchoice |
360 | 362 | ||