Skip to content

Commit

Permalink
[S390] add atomic64_xchg to s390
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Mathieu Desnoyers authored and Martin Schwidefsky committed Feb 21, 2007
1 parent de61c93 commit 3a5f10e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-s390/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 3a5f10e

Please sign in to comment.