]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: v6k: remove CPU_32v6K dependencies in asm/spinlock.h
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 15 Jan 2011 16:22:12 +0000 (16:22 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 2 Feb 2011 21:23:25 +0000 (21:23 +0000)
commit000d9c78eb5cd7f18e3d6a381d66e606bc9b8196
tree4a142d5c4d4b589ac696f3a6a932ba1965d29ed1
parent6323f0ccedf756dfe5f46549cec69a2d6d97937b
ARM: v6k: remove CPU_32v6K dependencies in asm/spinlock.h

SMP requires at least the ARMv6K extensions to be present, so if we're
running on SMP, the WFE and SEV instructions must be available.

However, when we run on UP, the v6K extensions may not be available,
and so we don't want WFE/SEV to be in the instruction stream.  Use the
SMP alternatives infrastructure to replace these instructions with NOPs
if we build for SMP but run on UP.

Tested-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/include/asm/spinlock.h