projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12f8839
)
arm64: Define cmpxchg64 and cmpxchg64_local for outside use
author
Chen Gang
<gang.chen@asianux.com>
Mon, 22 Apr 2013 05:08:41 +0000
(06:08 +0100)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Tue, 23 Apr 2013 10:47:26 +0000
(11:47 +0100)
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: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cmpxchg.h
patch
|
blob
|
history
diff --git
a/arch/arm64/include/asm/cmpxchg.h
b/arch/arm64/include/asm/cmpxchg.h
index
968b5cb
..
8a8ce0e
100644
(file)
--- a/
arch/arm64/include/asm/cmpxchg.h
+++ b/
arch/arm64/include/asm/cmpxchg.h
@@
-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 */