aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2022-05-05 11:55:23 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2022-05-21 10:31:46 -0700
commit1d7f6932c522ea95668e14265175ce3d753d0c24 (patch)
tree1e086c935a6ee78823da19e88172fcacb5172800 /scripts/gdb/linux/utils.py
parentriscv: atomic: Cleanup unnecessary definition (diff)
downloadwireguard-linux-1d7f6932c522ea95668e14265175ce3d753d0c24.tar.xz
wireguard-linux-1d7f6932c522ea95668e14265175ce3d753d0c24.zip
riscv: atomic: Optimize dec_if_positive functions
Current implementation wastes another register to pass the argument, but we only need addi to calculate the result. Optimize the code with minimize the usage of registers. 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-3-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