[GIT PULL] Native and emulated one-byte cmpxcha()g for v6.10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, Linus,

Please pull the following cmpxchg()-related changes:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/cmpxchg.2024.05.11a
  # HEAD: 5800e77d88c0cd98bc10460df148631afa7b5e4d: csky: Emulate one-byte cmpxchg (2024-05-11 07:07:07 -0700)

Please note that the commit and tag are quite recent.  However, the
only change was to add the architecture maintainer'a ack.  The exact
same change (other than the ack) has been in -next for quite some time.

Of course, if you would prefer that this exact commit be in -next for a
decent interval, please let me know and I will be happy to re-send this
pull request after a few days in -next.

----------------------------------------------------------------
sparc32,parisc,csky: Provide one-byte and two-byte cmpxchg() support

This series provides native one-byte and two-byte cmpxchg() support
for sparc32 and parisc, courtesy of Al Viro.  This support is provided
by the same hashed-array-of-locks technique used for the other atomic
operations provided for these two platforms.

This series also provides emulated one-byte cmpxchg() support for csky
using a new cmpxchg_emu_u8() function that uses a four-byte cmpxchg()
to emulate the one-byte variant.

Similar patches for emulation of one-byte cmpxchg() for arc, sh, and
xtensa have not yet received maintainer acks, so they are slated for
the v6.11 merge window.

----------------------------------------------------------------
Al Viro (8):
      sparc32: make __cmpxchg_u32() return u32
      sparc32: make the first argument of __cmpxchg_u64() volatile u64 *
      sparc32: unify __cmpxchg_u{32,64}
      sparc32: add __cmpxchg_u{8,16}() and teach __cmpxchg() to handle those sizes
      parisc: __cmpxchg_u32(): lift conversion into the callers
      parisc: unify implementations of __cmpxchg_u{8,32,64}
      parisc: add missing export of __cmpxchg_u8()
      parisc: add u16 support to cmpxchg()

Paul E. McKenney (2):
      lib: Add one-byte emulation function
      csky: Emulate one-byte cmpxchg

 arch/Kconfig                        |  3 +++
 arch/csky/Kconfig                   |  1 +
 arch/csky/include/asm/cmpxchg.h     | 10 +++++++
 arch/parisc/include/asm/cmpxchg.h   | 22 +++++++---------
 arch/parisc/kernel/parisc_ksyms.c   |  2 ++
 arch/parisc/lib/bitops.c            | 52 ++++++++++++-------------------------
 arch/sparc/include/asm/cmpxchg_32.h | 20 +++++++-------
 arch/sparc/lib/atomic32.c           | 45 ++++++++++++++------------------
 include/linux/cmpxchg-emu.h         | 15 +++++++++++
 lib/Makefile                        |  1 +
 lib/cmpxchg-emu.c                   | 45 ++++++++++++++++++++++++++++++++
 11 files changed, 133 insertions(+), 83 deletions(-)
 create mode 100644 include/linux/cmpxchg-emu.h
 create mode 100644 lib/cmpxchg-emu.c




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux