]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm64: atomics: implement atomic{,64}_cmpxchg using cmpxchg
authorWill Deacon <will.deacon@arm.com>
Thu, 4 Jun 2015 16:46:37 +0000 (17:46 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 14:28:53 +0000 (15:28 +0100)
commit6059a7b6e818023436a9058170a4fea1c670dc98
tree7449e24549e4ddee931518e6781f630a63b50933
parent0ea366f5e1b6413a6095dce60ea49ae51e468b61
arm64: atomics: implement atomic{,64}_cmpxchg using cmpxchg

We don't need duplicate cmpxchg implementations, so use cmpxchg to
implement atomic{,64}_cmpxchg, like we do for xchg already.

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>
arch/arm64/include/asm/atomic.h
arch/arm64/include/asm/atomic_ll_sc.h
arch/arm64/include/asm/atomic_lse.h