[PATCH 0/2] s390: don't use 128-bit cmpxchg for READ_ONCE() purposes

From: Heiko Carstens
Date: Fri Feb 24 2023 - 05:04:11 EST


Introduce and use an s390 specific READ_ONCE_ALIGNED_128() macro in order
to get rid of the odd 128-bit cmpxchg READ_ONCE() usage in cpum_sf, which
was introduced with commit 82d3edb50a11 ("s390/cpum_sf: add READ_ONCE()
semantics to compare and swap loops").

Heiko Carstens (2):
s390/rwonce: add READ_ONCE_ALIGNED_128() macro
s390/cpum_sf: use READ_ONCE_ALIGNED_128() instead of 128-bit cmpxchg

arch/s390/include/asm/rwonce.h | 31 +++++++++++++++++++++++++++++++
arch/s390/kernel/perf_cpum_sf.c | 9 +++------
2 files changed, 34 insertions(+), 6 deletions(-)
create mode 100644 arch/s390/include/asm/rwonce.h

--
2.37.2