Re: [PATCH v5 10/13] asm-generic: ticket-lock: Add separate ticket-lock.h

Andrew Jones
2024-08-21T14:32:48Z

On Sun, Aug 18, 2024 at 08:35:35AM GMT, Alexandre Ghiti wrote:
> From: Guo Ren <guoren@linux.alibaba.com>
>
> Add a separate ticket-lock.h to include multiple spinlock versions and
> select one at compile time or runtime.
>
> 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@linux.alibaba.com>
> Signed-off-by: Guo Ren <guoren@kernel.org>
> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
> include/asm-generic/spinlock.h | 87 +---------------------
> include/asm-generic/ticket_spinlock.h | 103 ++++++++++++++++++++++++++
> 2 files changed, 104 insertions(+), 86 deletions(-)
> create mode 100644 include/asm-generic/ticket_spinlock.h
>