projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove unneeded _syscallX macros from user view in asm-*/unistd.h
[linux-block.git]
/
include
/
asm-cris
/
atomic.h
diff --git
a/include/asm-cris/atomic.h
b/include/asm-cris/atomic.h
index 2df2c7aa19b7bd373f96ce1859edc3b169d395b8..0b51a87e5532e9025111b6c5177bf8c964d58f22 100644
(file)
--- a/
include/asm-cris/atomic.h
+++ b/
include/asm-cris/atomic.h
@@
-136,6
+136,8
@@
static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
return ret;
}
+#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
+
static inline int atomic_add_unless(atomic_t *v, int a, int u)
{
int ret;