Skip to content

Commit

Permalink
arm64: cmpxchg: implement cmpxchg64_relaxed
Browse files Browse the repository at this point in the history
This patch introduces cmpxchg64_relaxed for arm64 using the existing
cmpxchg_local macro, which performs a cmpxchg operation (up to 64 bits)
without barrier semantics.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
  • Loading branch information
Will Deacon authored and Catalin Marinas committed Oct 24, 2013
1 parent 5686b06 commit cf10b79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,6 @@ static inline unsigned long __cmpxchg_mb(volatile void *ptr, unsigned long old,
#define cmpxchg64(ptr,o,n) cmpxchg((ptr),(o),(n))
#define cmpxchg64_local(ptr,o,n) cmpxchg_local((ptr),(o),(n))

#define cmpxchg64_relaxed(ptr,o,n) cmpxchg_local((ptr),(o),(n))

#endif /* __ASM_CMPXCHG_H */

0 comments on commit cf10b79

Please sign in to comment.