ARM: 7593/1: nommu: do not enable DCACHE_WORD_ACCESS when !CONFIG_MMU
authorWill Deacon <will.deacon@arm.com>
Tue, 4 Dec 2012 11:57:11 +0000 (12:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 7 Dec 2012 11:49:06 +0000 (11:49 +0000)
commit39b175a0092d4a8e0875c67df82285475b1da591
tree094700ff47598dd54cc903486ebf30534f965cd5
parente91b36efe51b5cbbfe5eb61a653cde5985ae8285
ARM: 7593/1: nommu: do not enable DCACHE_WORD_ACCESS when !CONFIG_MMU

Commit b9a50f74905a ("ARM: 7450/1: dcache: select DCACHE_WORD_ACCESS for
little-endian ARMv6+ CPUs") added support for word-at-time path
comparisons, relying on the ability to perform unaligned loads with
negligible performance impact in hardware.

For nommu configurations without MPU support, this is unpredictable and
so we should fall back to the byte-by-byte routines.

Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Jonathan Austin <jonathan.austin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig