Skip to content

Commit

Permalink
s390/cmpxchg: add missing memory barrier to cmpxchg64
Browse files Browse the repository at this point in the history
All cmpxchg functions imply a memory barrier.
cmpxch64 did not have one for 31 bit code, so add it.

Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
  • Loading branch information
heicarst authored and Martin Schwidefsky committed May 30, 2012
1 parent b9e3f77 commit 0c44ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static inline unsigned long long __cmpxchg64(void *ptr,
" cds %0,%2,%1"
: "+&d" (rp_old), "=Q" (ptr)
: "d" (rp_new), "Q" (ptr)
: "cc");
: "memory", "cc");
return rp_old.pair;
}
#define cmpxchg64(ptr, o, n) \
Expand Down

0 comments on commit 0c44ca7

Please sign in to comment.