aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/cpu.c
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2022-05-05 11:55:24 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2022-05-21 10:31:47 -0700
commit4420658a4a7b03e3f4afb925bdd3ab9e06c2c46f (patch)
tree45f954aa8ab4e4291b96c5ca33c35ce2038b65a9 /arch/riscv/kernel/cpu.c
parent1d7f6932c522ea95668e14265175ce3d753d0c24 (diff)
riscv: atomic: Add custom conditional atomic operation implementation
Add conditional atomic operations' custom implementation (similar to dec_if_positive), here is the list: - arch_atomic_inc_unless_negative - arch_atomic_dec_unless_positive - arch_atomic64_inc_unless_negative - arch_atomic64_dec_unless_positive Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org> Link: https://lore.kernel.org/r/20220505035526.2974382-4-guoren@kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel/cpu.c')
0 files changed, 0 insertions, 0 deletions