git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Bluetooth] Add support for Targus ACB10US USB dongle
[pandora-kernel.git]
/
include
/
asm-cris
/
atomic.h
diff --git
a/include/asm-cris/atomic.h
b/include/asm-cris/atomic.h
index
2df2c7a
..
0b51a87
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;