Merge tag 'generic-ticket-spinlocks-v6' into for-next
authorPalmer Dabbelt <palmer@rivosinc.com>
Fri, 20 May 2022 17:14:08 +0000 (10:14 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 20 May 2022 17:14:08 +0000 (10:14 -0700)
commit19bc59bbeddf07360ef8bceb420f95712977a32f
treed4ae94a2d92a43d9b9c887d63eb23229d37a4def
parent83a7a614ce584c469bf8abfc2cd539701bd7d4e9
parent9282d0996936c5fbf877c0d096a3feb456c878ad
Merge tag 'generic-ticket-spinlocks-v6' into for-next

asm-generic: New generic ticket-based spinlock

This contains a new ticket-based spinlock that uses only generic
atomics and doesn't require as much from the memory system as qspinlock
does in order to be fair.  It also includes a bit of documentation about
the qspinlock and qrwlock fairness requirements.

This will soon be used by a handful of architectures that don't meet the
qspinlock requirements.

* tag 'generic-ticket-spinlocks-v6':
  csky: Move to generic ticket-spinlock
  RISC-V: Move to queued RW locks
  RISC-V: Move to generic spinlocks
  openrisc: Move to ticket-spinlock
  asm-generic: qrwlock: Document the spinlock fairness requirements
  asm-generic: qspinlock: Indicate the use of mixed-size atomics
  asm-generic: ticket-lock: New generic ticket-based spinlock
arch/riscv/Kconfig