提交 0c44ca71 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

s390/cmpxchg: add missing memory barrier to cmpxchg64

All cmpxchg functions imply a memory barrier.
cmpxch64 did not have one for 31 bit code, so add it.
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 b9e3f776
......@@ -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) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册