aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorGuo Ren <[email protected]>2022-05-05 11:55:23 +0800
committerPalmer Dabbelt <[email protected]>2022-05-21 10:31:46 -0700
commit1d7f6932c522ea95668e14265175ce3d753d0c24 (patch)
tree1e086c935a6ee78823da19e88172fcacb5172800 /include/linux/fpga/fpga-mgr.h
parentdd8437cd4249e367f747a37b6a19d4cd04bf8796 (diff)
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 <[email protected]> Signed-off-by: Guo Ren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions