summaryrefslogtreecommitdiff
path: root/arch/arm64/lib
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-06-04 18:41:36 +0300
committerWill Deacon <will.deacon@arm.com>2015-07-27 17:28:53 +0300
commita82e62382fcbbf5c3348e802af73583e0cac39c0 (patch)
tree01e8ff2e9c9ab4b937ef15de980a31cdcee2db27 /arch/arm64/lib
parent4e39715f4b5cb3b44576fedb2d38aca87de3cf48 (diff)
downloadlinux-a82e62382fcbbf5c3348e802af73583e0cac39c0.tar.xz
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/lib')
0 files changed, 0 insertions, 0 deletions