]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit936009da19086fd894920931e9266445d2f2d593
tree5ce44e8a5e1b5dd5f001db623393025568e0d7c5
parent836c909a3c6d77ec7ff30b53389b5948af4dfd41
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