]> 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)
commit2b5a636db44c2fe5ebf91f57d5531b69ffb7e0c9
tree5ce44e8a5e1b5dd5f001db623393025568e0d7c5
parent90356d9ba1e4e9a91b347b31ad6b7679e6ed3be4
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