]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: v6k: select clear exclusive code seqences according to V6 variants
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Jan 2011 15:35:37 +0000 (15:35 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 2 Feb 2011 21:23:28 +0000 (21:23 +0000)
commit7db44c75a241c18d03e82540c5b825216d4c668b
treeed60c9c5b8f894742ff5cfee278e542f5d8818b6
parentc786282e6dd18fe2ff43ab44411085dc40e7fbc5
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.

Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-header.S
arch/arm/mm/abort-ev6.S