projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[AF_RXRPC]: Make it possible to merely try to cancel timers from a module
[powerpc.git]
/
include
/
asm-s390
/
atomic.h
diff --git
a/include/asm-s390/atomic.h
b/include/asm-s390/atomic.h
index
af20c74
..
c17bdbf
100644
(file)
--- a/
include/asm-s390/atomic.h
+++ b/
include/asm-s390/atomic.h
@@
-215,6
+215,8
@@
static __inline__ void atomic64_set_mask(unsigned long mask, atomic64_t * v)
__CSG_LOOP(v, mask, "ogr");
}
+#define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
+
static __inline__ long long atomic64_cmpxchg(atomic64_t *v,
long long old, long long new)
{