All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] s390: don't use 128-bit cmpxchg for READ_ONCE() purposes
@ 2023-02-24 10:02 Heiko Carstens
  2023-02-24 10:02 ` [PATCH 1/2] s390/rwonce: add READ_ONCE_ALIGNED_128() macro Heiko Carstens
  2023-02-24 10:02 ` [PATCH 2/2] s390/cpum_sf: use READ_ONCE_ALIGNED_128() instead of 128-bit cmpxchg Heiko Carstens
  0 siblings, 2 replies; 6+ messages in thread
From: Heiko Carstens @ 2023-02-24 10:02 UTC (permalink / raw)
  To: Vasily Gorbik, Alexander Gordeev, Thomas Richter
  Cc: Sven Schnelle, Christian Borntraeger, Peter Zijlstra, linux-s390,
	linux-kernel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-02-27 11:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-24 10:02 [PATCH 0/2] s390: don't use 128-bit cmpxchg for READ_ONCE() purposes Heiko Carstens
2023-02-24 10:02 ` [PATCH 1/2] s390/rwonce: add READ_ONCE_ALIGNED_128() macro Heiko Carstens
2023-02-25 16:50   ` Peter Zijlstra
2023-02-26 20:56     ` Heiko Carstens
2023-02-27 11:51       ` Peter Zijlstra
2023-02-24 10:02 ` [PATCH 2/2] s390/cpum_sf: use READ_ONCE_ALIGNED_128() instead of 128-bit cmpxchg Heiko Carstens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.