[ARM] 5417/1: Set the correct cacheid for ARMv6 CPUs with ARMv7 style MMU
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 3 Mar 2009 10:44:12 +0000 (11:44 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 3 Mar 2009 12:11:26 +0000 (12:11 +0000)
commitb57ee99fab25dbc12150fe66fe54dc52bc6de784
tree21bd531baa837d47ff600d36cef524b0ff4cb94c
parent25ef4a67e78e1322d55f0a38783537ed89addc02
[ARM] 5417/1: Set the correct cacheid for ARMv6 CPUs with ARMv7 style MMU

The cacheid_init() function assumes that if cpu_architecture() returns
7, the caches are VIPT_NONALIASING. The cpu_architecture() function
returns the version of the supported MMU features (e.g. TEX remapping)
but it doesn't make any assumptions about the cache type. The patch adds
the checking of the Cache Type Register for the ARMv7 format.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c