From: Mathieu Desnoyers Date: Wed, 21 Feb 2007 09:55:59 +0000 (+0100) Subject: [S390] add atomic64_xchg to s390 X-Git-Tag: firefly_0821_release~31017 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3a5f10e3708e00c406f154bae412652ec3eb2b48;p=firefly-linux-kernel-4.4.55.git [S390] add atomic64_xchg to s390 Signed-off-by: Mathieu Desnoyers Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Martin Schwidefsky --- diff --git a/include/asm-s390/atomic.h b/include/asm-s390/atomic.h index af20c7462485..c17bdbf22067 100644 --- 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) {