[PATCH v2 16/20] arm64: atomics: tidy up common atomic{,64}_* macros

Catalin Marinas catalin.marinas at arm.com
Fri Jul 24 08:40:43 PDT 2015


On Fri, Jul 24, 2015 at 11:42:07AM +0100, Will Deacon wrote:
> 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 <steve.capper at arm.com>
> Signed-off-by: Will Deacon <will.deacon at arm.com>

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list