Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a84b086b authored by Chen Gang's avatar Chen Gang Committed by Catalin Marinas
Browse files

arm64: Define cmpxchg64 and cmpxchg64_local for outside use



Drivers use cmpxchg64, cmpxchg64_local to perform 64-bit operation, so
they can cross 32-bit and 64-bit platforms (it is a standard way).

Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 12f88398
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -170,4 +170,7 @@ static inline unsigned long __cmpxchg_mb(volatile void *ptr, unsigned long old,
				       (unsigned long)(n),		\
				       sizeof(*(ptr))))

#define cmpxchg64(ptr,o,n)		cmpxchg((ptr),(o),(n))
#define cmpxchg64_local(ptr,o,n)	cmpxchg_local((ptr),(o),(n))

#endif	/* __ASM_CMPXCHG_H */