From: Will Deacon Date: Fri, 21 Feb 2014 16:01:48 +0000 (+0100) Subject: ARM: 7983/1: atomics: implement a better __atomic_add_unless for v6+ X-Git-Tag: sz_173~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8b769774a6f0d4a62924c960361d6403583c907;p=pandora-kernel.git ARM: 7983/1: atomics: implement a better __atomic_add_unless for v6+ Looking at perf profiles of multi-threaded hackbench runs, a significant performance hit appears to manifest from the cmpxchg loop used to implement the 32-bit atomic_add_unless function. This can be mitigated by writing a direct implementation of __atomic_add_unless which doesn't require iteration outside of the atomic operation. Signed-off-by: Will Deacon Signed-off-by: Russell King Conflicts: arch/arm/include/asm/atomic.h --- Reading git-diff-tree failed