]> www.infradead.org Git - users/jedix/linux-maple.git/commit
asm-generic: ticket-lock: Reuse arch_spinlock_t of qspinlock
authorGuo Ren <guoren@linux.alibaba.com>
Sun, 3 Nov 2024 14:51:49 +0000 (15:51 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 11 Nov 2024 15:33:16 +0000 (07:33 -0800)
commitcbe82e140bb76e1aa9f808cc841654a25b70d4e5
tree1063d2ecfdea6d07b78cec9ff82b86085906ddef
parent97ddab7fbea8fceb044108b64ba2ee2c96ff8dab
asm-generic: ticket-lock: Reuse arch_spinlock_t of qspinlock

The arch_spinlock_t of qspinlock has contained the atomic_t val, which
satisfies the ticket-lock requirement. Thus, unify the arch_spinlock_t
into qspinlock_types.h. This is the preparation for the next combo
spinlock.

Reviewed-by: Leonardo Bras <leobras@redhat.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/linux-riscv/CAK8P3a2rnz9mQqhN6-e0CGUUv9rntRELFdxt_weiD7FxH7fkfQ@mail.gmail.com/
Signed-off-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Andrea Parri <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20241103145153.105097-10-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
include/asm-generic/spinlock.h
include/asm-generic/spinlock_types.h