diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-08-10 05:23:45 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-08-11 05:23:49 -0400 |
commit | c1becedc8871645278832fabdc6fe138082a495b (patch) | |
tree | e02970dc6d041680d36cd570e9dbca5cf637fbe7 | |
parent | 4eb979d4d182c67acb6272a3a0244bf0027cf16b (diff) |
ARM: enable ARM_PATCH_PHYS_VIRT by default
Enable virtual to physical translation patching by default in all
kernels. Hide the option behind EMBEDDED.
This can still be turned off if people desire, and they know what
they're doing, to shrink the size of the kernel to a minimum.
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/Kconfig | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5ebc5d922ea1..8882a535cf44 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -195,7 +195,8 @@ config VECTORS_BASE | |||
195 | The base address of exception vectors. | 195 | The base address of exception vectors. |
196 | 196 | ||
197 | config ARM_PATCH_PHYS_VIRT | 197 | config ARM_PATCH_PHYS_VIRT |
198 | bool "Patch physical to virtual translations at runtime" | 198 | bool "Patch physical to virtual translations at runtime" if EMBEDDED |
199 | default y | ||
199 | depends on !XIP_KERNEL && MMU | 200 | depends on !XIP_KERNEL && MMU |
200 | depends on !ARCH_REALVIEW || !SPARSEMEM | 201 | depends on !ARCH_REALVIEW || !SPARSEMEM |
201 | help | 202 | help |
@@ -207,6 +208,10 @@ config ARM_PATCH_PHYS_VIRT | |||
207 | of physical memory is at a 16MB boundary, or theoretically 64K | 208 | of physical memory is at a 16MB boundary, or theoretically 64K |
208 | for the MSM machine class. | 209 | for the MSM machine class. |
209 | 210 | ||
211 | Only disable this option if you know that you do not require | ||
212 | this feature (eg, building a kernel for a single machine) and | ||
213 | you need to shrink the kernel to the minimal size. | ||
214 | |||
210 | config ARM_PATCH_PHYS_VIRT_16BIT | 215 | config ARM_PATCH_PHYS_VIRT_16BIT |
211 | def_bool y | 216 | def_bool y |
212 | depends on ARM_PATCH_PHYS_VIRT && ARCH_MSM | 217 | depends on ARM_PATCH_PHYS_VIRT && ARCH_MSM |
@@ -301,7 +306,6 @@ config ARCH_AT91 | |||
301 | select ARCH_REQUIRE_GPIOLIB | 306 | select ARCH_REQUIRE_GPIOLIB |
302 | select HAVE_CLK | 307 | select HAVE_CLK |
303 | select CLKDEV_LOOKUP | 308 | select CLKDEV_LOOKUP |
304 | select ARM_PATCH_PHYS_VIRT if MMU | ||
305 | help | 309 | help |
306 | This enables support for systems based on the Atmel AT91RM9200, | 310 | This enables support for systems based on the Atmel AT91RM9200, |
307 | AT91SAM9 and AT91CAP9 processors. | 311 | AT91SAM9 and AT91CAP9 processors. |