From 0c44ca71f59447a5e602c45728829d1cb6a1b4b5 Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Tue, 29 May 2012 06:54:32 +0200 Subject: [PATCH] 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: Heiko Carstens Signed-off-by: Martin Schwidefsky --- arch/s390/include/asm/cmpxchg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/include/asm/cmpxchg.h b/arch/s390/include/asm/cmpxchg.h index 81d7908416cf..ebd31481f1d2 100644 --- a/arch/s390/include/asm/cmpxchg.h +++ b/arch/s390/include/asm/cmpxchg.h @@ -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) \ -- 2.39.5