ARM: v6k: select clear exclusive code seqences according to V6 variants
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Wed, 19 Jan 2011 22:03:50 +0000 (14:03 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 28 Jan 2011 01:36:06 +0000 (17:36 -0800)
commitc1524e4d441878daf389248ce773eb5d2fd76b54
tree8a864a1320b739ee6a9e91776652420f75149fab
parentee86c100aedb44a610615824f6b51d13b997da47
ARM: v6k: select clear exclusive code seqences according to V6 variants

If CONFIG_CPU_V6 is enabled, then the kernel must support ARMv6 CPUs
which don't have the V6K extensions implemented.  Always use the
dummy store-exclusive method to ensure that the exclusive monitors are
cleared.

If CONFIG_CPU_V6 is not set, but CONFIG_CPU_32v6K is enabled, then we
have the K extensions available on all CPUs we're building support for,
so we can use the new clear-exclusive instruction.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-header.S
arch/arm/mm/abort-ev6.S