summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2011-02-15 18:06:57 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-19 11:24:28 +0000
commit315cfe7835c9a3fe27f15519bdeee8bf0a293e33 (patch)
treee8656e0752dd6929198e2eb167eaafa5ced191ee /arch/arm
parent32c3fcb08178f6ca14191b22d72760984cfb75cb (diff)
downloadlinux-3.10-315cfe7835c9a3fe27f15519bdeee8bf0a293e33.tar.gz
linux-3.10-315cfe7835c9a3fe27f15519bdeee8bf0a293e33.tar.bz2
linux-3.10-315cfe7835c9a3fe27f15519bdeee8bf0a293e33.zip
ARM: 6676/1: Correct the cpu_architecture() function for ARMv7
If ID_MMFR0[3:0] >= 3, the architecture version is ARMv7. The code was currently only testing for ID_MMFR0[3:0] == 3. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/kernel/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 420b8d6485d..5ea4fb718b9 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -226,8 +226,8 @@ int cpu_architecture(void)
* Register 0 and check for VMSAv7 or PMSAv7 */
asm("mrc p15, 0, %0, c0, c1, 4"
: "=r" (mmfr0));
- if ((mmfr0 & 0x0000000f) == 0x00000003 ||
- (mmfr0 & 0x000000f0) == 0x00000030)
+ if ((mmfr0 & 0x0000000f) >= 0x00000003 ||
+ (mmfr0 & 0x000000f0) >= 0x00000030)
cpu_arch = CPU_ARCH_ARMv7;
else if ((mmfr0 & 0x0000000f) == 0x00000002 ||
(mmfr0 & 0x000000f0) == 0x00000020)