[Linux-Xtensa] [PATCH 0/2] xtensa: switch to generic spinlock/rwlock

Max Filippov jcmvbkbc at gmail.com
Thu Feb 7 20:23:22 UTC 2019


Hello,

these two patches enable use of generic queued spinlocks/rwlocks for xtensa.
This results in less arch-specific code, less duplication of atomic logic
and less effort to support exclusive load/store option.

Max Filippov (2):
  xtensa: provide xchg for sizes 1 and 2
  xtensa: use generic spinlock/rwlock implementation

 arch/xtensa/Kconfig                      |   2 +
 arch/xtensa/include/asm/Kbuild           |   2 +
 arch/xtensa/include/asm/cmpxchg.h        |  36 +++++-
 arch/xtensa/include/asm/spinlock.h       | 185 +------------------------------
 arch/xtensa/include/asm/spinlock_types.h |  15 +--
 5 files changed, 42 insertions(+), 198 deletions(-)

-- 
2.11.0



More information about the linux-xtensa mailing list