summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/cmpxchg.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-06-04 16:41:36 +0100
committerWill Deacon <will.deacon@arm.com>2015-07-27 15:28:53 +0100
commita82e62382fcbbf5c3348e802af73583e0cac39c0 (patch)
tree01e8ff2e9c9ab4b937ef15de980a31cdcee2db27 /arch/arm64/include/asm/cmpxchg.h
parent4e39715f4b5cb3b44576fedb2d38aca87de3cf48 (diff)
downloadop-kernel-dev-a82e62382fcbbf5c3348e802af73583e0cac39c0.zip
op-kernel-dev-a82e62382fcbbf5c3348e802af73583e0cac39c0.tar.gz
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 <steve.capper@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cmpxchg.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud