mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] Provide two-byte cmpxchg() emulation
@ 2026-10-07 20:36 Paul E. McKenney
  2026-10-07 20:36 ` [PATCH 1/5] lib: Add two-byte cmpxchg emulation function Paul E. McKenney
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Paul E. McKenney @ 2026-10-07 20:36 UTC (permalink / raw)
  To: linux-kernel
  Cc: Bradley Morgan, Vineet Gupta, Guo Ren, Yoshinori Sato,
	Rich Felker, John Paul Adrian Glaubitz, Chris Zankel,
	Max Filippov, Andrew Morton, Arnd Bergmann, David Laight,
	linux-snps-arc, linux-csky, linux-sh, kernel-team

Hello!

This series provides emulation of two-byte cmpxchg().  Note that this
does not (yet) allow free use of atomic operations on two-byte operands
in core code because there are still a few supported systems that do not
have two-byte store instructions.  However, this emulation does permit use
of wide range of two-byte atomic operations, so is worth putting forward.

This series is being reposted on request in order to ease testing efforts.

The individual patches are as follows:

1.	Add two-byte cmpxchg emulation function, courtesy of Bradley
	Morgan.

2.	sh: Emulate two-byte cmpxchg, courtesy of Bradley Morgan.

3.	ARC: Emulate two-byte cmpxchg, courtesy of Bradley Morgan.

4.	csky: Emulate two-byte cmpxchg, courtesy of Bradley Morgan.

5.	xtensa: Emulate two-byte cmpxchg, courtesy of Bradley Morgan.

#1 and #2 have the acks required to go into the upcoming v7.4 merge
window.

						Thanx, Paul

------------------------------------------------------------------------

 arch/arc/include/asm/cmpxchg.h    |    3 +++
 arch/csky/include/asm/cmpxchg.h   |    9 +++++++++
 arch/sh/include/asm/cmpxchg.h     |    2 ++
 arch/xtensa/include/asm/cmpxchg.h |    1 +
 include/linux/cmpxchg-emu.h       |    4 +++-
 lib/cmpxchg-emu.c                 |   38 ++++++++++++++++++++++++++++++++++----
 6 files changed, 52 insertions(+), 5 deletions(-)

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

end of thread, other threads:[~2026-10-07 20:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 20:36 [PATCH 0/5] Provide two-byte cmpxchg() emulation Paul E. McKenney
2026-10-07 20:36 ` [PATCH 1/5] lib: Add two-byte cmpxchg emulation function Paul E. McKenney
2026-10-07 20:36 ` [PATCH 2/5] sh: Emulate two-byte cmpxchg Paul E. McKenney
2026-10-07 20:36 ` [PATCH 3/5] ARC: " Paul E. McKenney
2026-10-07 20:48   ` Vineet Gupta
2026-10-07 20:58     ` Paul E. McKenney
2026-10-07 20:36 ` [PATCH 4/5] csky: " Paul E. McKenney
2026-10-07 20:36 ` [PATCH 5/5] xtensa: " Paul E. McKenney
2026-10-07 20:44 ` [PATCH 0/5] Provide two-byte cmpxchg() emulation Bradley Morgan
2026-10-07 20:50   ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®