ARM: 6387/1: errata: check primary part ID in proc-v7.S
authorWill Deacon <will.deacon@arm.com>
Tue, 14 Sep 2010 08:50:03 +0000 (09:50 +0100)
committerMatt Sealey <matt@genesi-usa.com>
Sat, 29 Jan 2011 15:23:15 +0000 (09:23 -0600)
commit797e410a39fa0bc6cc11221fef64c3546affc8be
tree062628737ebd33a61a2ca9b175cf605327881c7c
parent48347800be82e22c089ceb317188908b19f8b174
ARM: 6387/1: errata: check primary part ID in proc-v7.S

Kconfig doesn't have any knowledge of specific v7 cores, so it is possible
to select errata workarounds that may cause inadvertent behaviour when
executed on a core other than those targetted by the fix.

This patch improves the variant and revision checking in proc-v7.S so
that the primary part number is also considered when applying errata
workarounds.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-v7.S