On Sun, Aug 18, 2024 at 08:35:35AM GMT, Alexandre Ghiti wrote: > From: Guo Ren <guoren@xxxxxxxxxxxxxxxxx> > > Add a separate ticket-lock.h to include multiple spinlock versions and > select one at compile time or runtime. > > Reviewed-by: Leonardo Bras <leobras@xxxxxxxxxx> > Suggested-by: Arnd Bergmann <arnd@xxxxxxxx> > Link: https://lore.kernel.org/linux-riscv/CAK8P3a2rnz9mQqhN6-e0CGUUv9rntRELFdxt_weiD7FxH7fkfQ@xxxxxxxxxxxxxx/ > Signed-off-by: Guo Ren <guoren@xxxxxxxxxxxxxxxxx> > Signed-off-by: Guo Ren <guoren@xxxxxxxxxx> > Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx> > --- > 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 > Reviewed-by: Andrew Jones <ajones@xxxxxxxxxxxxxxxx>