[PATCH v5 09/13] asm-generic: ticket-lock: Reuse arch_spinlock_t of qspinlock
Andrew Jones
ajones at ventanamicro.com
Wed Aug 21 07:28:30 PDT 2024
On Sun, Aug 18, 2024 at 08:35:34AM GMT, Alexandre Ghiti wrote:
> From: Guo Ren <guoren at linux.alibaba.com>
>
> 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 at redhat.com>
> Suggested-by: Arnd Bergmann <arnd at arndb.de>
> Link: https://lore.kernel.org/linux-riscv/CAK8P3a2rnz9mQqhN6-e0CGUUv9rntRELFdxt_weiD7FxH7fkfQ@mail.gmail.com/
> Signed-off-by: Guo Ren <guoren at kernel.org>
> Signed-off-by: Guo Ren <guoren at linux.alibaba.com>
> Acked-by: Peter Zijlstra (Intel) <peterz at infradead.org>
> ---
> include/asm-generic/spinlock.h | 14 +++++++-------
> include/asm-generic/spinlock_types.h | 12 ++----------
> 2 files changed, 9 insertions(+), 17 deletions(-)
>
Reviewed-by: Andrew Jones <ajones at ventanamicro.com>
More information about the linux-riscv
mailing list