]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit936b3928cae9dcdab6076fc3ff810f1e6c9725d8
tree21bd531baa837d47ff600d36cef524b0ff4cb94c
parent66f81d70310f488f33e75abec44b4ad15c1b127e
[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