From: Will Deacon Date: Thu, 4 Jun 2015 15:41:36 +0000 (+0100) Subject: arm64: atomics: tidy up common atomic{,64}_* macros X-Git-Tag: omap-for-v4.3/fixes-rc1~98^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a82e62382fcbbf5c3348e802af73583e0cac39c0;p=pandora-kernel.git arm64: atomics: tidy up common atomic{,64}_* macros The common (i.e. identical for ll/sc and lse) atomic macros in atomic.h are needlessley different for atomic_t and atomic64_t. This patch tidies up the definitions to make them consistent across the two atomic types and factors out common code such as the add_unless implementation based on cmpxchg. Reviewed-by: Steve Capper Reviewed-by: Catalin Marinas Signed-off-by: Will Deacon --- Reading git-diff-tree failed