linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH cmpxchg 0/3] Provide emulation for one-byte cmpxchg()
@ 2024-08-05 19:20 Paul E. McKenney
  2024-08-05 19:21 ` [PATCH cmpxchg 1/3] xtensa: Emulate one-byte cmpxchg Paul E. McKenney
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Paul E. McKenney @ 2024-08-05 19:20 UTC (permalink / raw)
  To: linux-arch, linux-kernel
  Cc: elver, akpm, tglx, peterz, torvalds, arnd, geert, palmer,
	mhiramat, linux-sh, linux-snps-arc

Hello!

This series provides an emulation function for one-byte cmpxchg(),
and uses it for the remaining architectures not supporting these in
hardware and not providing emulation.  The emulation is in terms of
the fully ordered four-byte cmpxchg() that is supplied by all of these
architectures.  The emulation has been used in mainline since v6.9
by csky.

Once this emulation is in place for all architectures needing
it, RCU Tasks will use this capability in place of the current
rcu_trc_cmpxchg_need_qs() open-coding of this emulation.

1.	xtensa: Emulate one-byte cmpxchg.

2.	ARC: Emulate one-byte cmpxchg.

3.	sh: Emulate one-byte cmpxchg.

						Thanx, Paul

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

 arc/Kconfig                  |    1 +
 arc/include/asm/cmpxchg.h    |   33 ++++++++++++++++++++++++---------
 sh/Kconfig                   |    1 +
 sh/include/asm/cmpxchg.h     |    3 +++
 xtensa/Kconfig               |    1 +
 xtensa/include/asm/cmpxchg.h |    2 ++
 6 files changed, 32 insertions(+), 9 deletions(-)

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

end of thread, other threads:[~2024-08-21 18:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05 19:20 [PATCH cmpxchg 0/3] Provide emulation for one-byte cmpxchg() Paul E. McKenney
2024-08-05 19:21 ` [PATCH cmpxchg 1/3] xtensa: Emulate one-byte cmpxchg Paul E. McKenney
2024-08-05 19:21 ` [PATCH cmpxchg 2/3] ARC: " Paul E. McKenney
2024-08-06  1:27   ` Vineet Gupta
2024-08-06  4:28     ` Paul E. McKenney
2024-08-06  4:44       ` Vineet Gupta
2024-08-06 13:57         ` Paul E. McKenney
2024-08-05 19:21 ` [PATCH cmpxchg 3/3] sh: " Paul E. McKenney
2024-08-05 20:13   ` John Paul Adrian Glaubitz
2024-08-05 20:33     ` Paul E. McKenney
2024-08-21 18:02 ` [PATCH v2 cmpxchg 0/3] Provide emulation for one-byte cmpxchg() for v6.12 Paul E. McKenney
2024-08-21 18:10   ` [PATCH v2 cmpxchg 3/3] sh: Emulate one-byte cmpxchg 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;
as well as URLs for NNTP newsgroup(s).