[PATCH v2 cmpxchg 2/3] ARC: Emulate one-byte cmpxchg

2024-08-21 Thread Paul E. McKenney
Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on arc. [ paulmck: Drop two-byte support per Arnd Bergmann feedback. ] [ paulmck: Apply feedback from Naresh Kamboju. ] [ paulmck: Apply kernel test robot feedback. ] [ paulmck: Apply feedback from Vineet Gupta. ] Signed-off-by: Paul E. M

[PATCH v2 cmpxchg 0/3] Provide emulation for one-byte cmpxchg() for v6.12

2024-08-21 Thread Paul E. McKenney
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. T