From: Russell King Date: Sat, 15 Jan 2011 16:22:12 +0000 (+0000) Subject: ARM: v6k: remove CPU_32v6K dependencies in asm/spinlock.h X-Git-Tag: v2.6.39-rc1~463^2~1^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=000d9c78eb5cd7f18e3d6a381d66e606bc9b8196;p=pandora-kernel.git 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 Tested-by: Sourav Poddar Tested-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed