projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6
[powerpc.git]
/
include
/
asm-alpha
/
atomic.h
diff --git
a/include/asm-alpha/atomic.h
b/include/asm-alpha/atomic.h
index
cb03bbe
..
fc77f74
100644
(file)
--- a/
include/asm-alpha/atomic.h
+++ b/
include/asm-alpha/atomic.h
@@
-176,6
+176,7
@@
static __inline__ long atomic64_sub_return(long i, atomic64_t * v)
}
#define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
+#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
#define atomic_add_unless(v, a, u) \
({ \