diff options
author | 2022-05-05 11:55:24 +0800 | |
---|---|---|
committer | 2022-05-21 10:31:47 -0700 | |
commit | 4420658a4a7b03e3f4afb925bdd3ab9e06c2c46f (patch) | |
tree | 45f954aa8ab4e4291b96c5ca33c35ce2038b65a9 /scripts/gdb/linux/utils.py | |
parent | riscv: atomic: Optimize dec_if_positive functions (diff) | |
download | wireguard-linux-4420658a4a7b03e3f4afb925bdd3ab9e06c2c46f.tar.xz wireguard-linux-4420658a4a7b03e3f4afb925bdd3ab9e06c2c46f.zip |
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions