From: Russell King Date: Fri, 4 Jul 2014 13:44:36 +0000 (+0100) Subject: ARM: SWP emulation: always enable when SMP is enabled X-Git-Tag: omap-for-v3.17/fixes-against-rc2~160^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a11dd731f5ead63ab3d757bbb1ab631063f6c034;p=pandora-kernel.git ARM: SWP emulation: always enable when SMP is enabled SWP is deprecated in ARMv6 and ARMv7 CPUs, but more importantly, when running on a SMP system, SWP doesn't guarantee atomicity. This means it can't really be used (by userspace) for locking purposes in a SMP environment. Currently, many configurations leave the SWP emulation disabled, which means we never know if userspace executes this instruction on ARMv7 hardware. Rectify this by enabling SWP emulation for ARMv7 with SMP (where we can trap the instruction.) Tested-by: Tony Lindgren Acked-by: Catalin Marinas Signed-off-by: Russell King --- Reading git-diff-tree failed