asm-generic: qspinlock: Indicate the use of mixed-size atomics
authorPeter Zijlstra <peterz@infradead.org>
Wed, 16 Mar 2022 22:48:29 +0000 (15:48 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 11 May 2022 18:49:47 +0000 (11:49 -0700)
commita8ad07e5240c9e78633270be2fa2356b7e0f0af5
tree5ce44e8a5e1b5dd5f001db623393025568e0d7c5
parent1bce11126d57dde90a02ecf9bfe98175ab4e729e
asm-generic: qspinlock: Indicate the use of mixed-size atomics

The qspinlock implementation depends on having well behaved mixed-size
atomics.  This is true on the more widely-used platforms, but these
requirements are somewhat subtle and may not be satisfied by all the
platforms that qspinlock is used on.

Document these requirements, so ports that use qspinlock can more easily
determine if they meet these requirements.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Waiman Long <longman@redhat.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
include/asm-generic/qspinlock.h