]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[ARM] 4585/1: Correctly identify the CPU architecture version
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 25 Sep 2007 15:49:45 +0000 (16:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 12 Oct 2007 22:43:27 +0000 (23:43 +0100)
commit180005c4efb76a81fd0abcef4c2412d238eea20c
treefbc9e78fce9c9c071d97e59a77a9e2fb8d7c3c1a
parentc1f438f5eec867707022e5f33bec5e91ec12f6e7
[ARM] 4585/1: Correctly identify the CPU architecture version

The cpu_architecture() function in arch/arm/kernel/setup.c only works
with cores produced by ARM Ltd. The more generic approach is to read
the ID_MMFR0 register and check for the VMSA or PMSA version
supported. With this patch, the ARM11MPCore would be reported as ARMv7
since its MMU is compatible with ARMv7.

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