From: Will Deacon Date: Wed, 5 Jun 2013 10:27:26 +0000 (+0100) Subject: ARM: 7749/1: spinlock: retry trylock operation if strex fails on free lock X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~41^2~1^3~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15e7e5c1ebf556cd620c9b091e121091ac760f6d;p=pandora-kernel.git ARM: 7749/1: spinlock: retry trylock operation if strex fails on free lock An exclusive store instruction may fail for reasons other than lock contention (e.g. a cache eviction during the critical section) so, in line with other architectures using similar exclusive instructions (alpha, mips, powerpc), retry the trylock operation if the lock appears to be free but the strex reported failure. Reported-by: Tony Thompson Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed