Re: [RFC][PATCH 07/12] percpu: Wire up cmpxchg128

From
Peter Zijlstra <peterz@infradead.org>
Date
2023-01-09 16:31:20
Also in
linux-arch, linux-crypto, linux-iommu, linux-mm, linux-s390, lkml
Reply to
Heiko Carstens, 2023-01-04
On Wed, Jan 04, 2023 at 01:09:16PM +0100, Heiko Carstens wrote:
On Mon, Dec 19, 2022 at 04:35:32PM +0100, Peter Zijlstra wrote:
quoted
In order to replace cmpxchg_double() with the newly minted
cmpxchg128() family of functions, wire it up in this_cpu_cmpxchg().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
...
quoted
--- a/arch/s390/include/asm/percpu.h
+++ b/arch/s390/include/asm/percpu.h
+#define this_cpu_cmpxchg_16(pcp, oval, nval)				\
+({									\
+	u128 old__ = __pcpu_cast_128((nval), (nval));			\
+	u128 new__ = __pcpu_cast_128((oval), (oval));			\
spot the bug... please merge the below into this patch.
D'oh, luckily I got a fresh pile of brown paper bags for xmas.
Thread (57 messages) 57 messages, 15 authors, last reply 2023-01-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help