]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: Implement smp_cond_load8/16() with Zawrs
authorGuo Ren <guoren@linux.alibaba.com>
Tue, 17 Dec 2024 01:39:10 +0000 (20:39 -0500)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 18 Mar 2025 09:12:45 +0000 (09:12 +0000)
commitd9708b1931fc0ebb21cd94a56283d09222847749
treec71d6dabdefb4051d9093b0908967705f4664367
parentd9be2b9b60497a82aeceec3a98d8b37fdd2960f2
riscv: Implement smp_cond_load8/16() with Zawrs

RISC-V code uses the queued spinlock implementation, which calls
the macros smp_cond_load_acquire for one byte. So, complement the
implementation of byte and halfword versions.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Cc: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20241217013910.1039923-1-guoren@kernel.org
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/include/asm/cmpxchg.h