linux/arch
Guo Ren 1d7f6932c5
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>
2022-05-21 10:31:46 -07:00
..
alpha Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
arc ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
arm ARM fixes for 5.18-rc1: 2022-04-03 10:17:48 -07:00
arm64 asm-generic: compat: Cleanup duplicate definitions 2022-04-26 13:35:54 -07:00
csky csky: Move to generic ticket-spinlock 2022-05-11 11:50:15 -07:00
h8300 Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
hexagon ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
ia64 Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
m68k Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
microblaze Kbuild updates for v5.18 2022-03-31 11:59:03 -07:00
mips asm-generic: compat: Cleanup duplicate definitions 2022-04-26 13:35:54 -07:00
nios2 ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
openrisc openrisc: Move to ticket-spinlock 2022-05-11 11:50:00 -07:00
parisc asm-generic: compat: Cleanup duplicate definitions 2022-04-26 13:35:54 -07:00
powerpc asm-generic: compat: Cleanup duplicate definitions 2022-04-26 13:35:54 -07:00
riscv riscv: atomic: Optimize dec_if_positive functions 2022-05-21 10:31:46 -07:00
s390 asm-generic: compat: Cleanup duplicate definitions 2022-04-26 13:35:54 -07:00
sh Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
sparc asm-generic: compat: Cleanup duplicate definitions 2022-04-26 13:35:54 -07:00
um Kbuild fixes for v5.18 2022-04-02 12:33:31 -07:00
x86 asm-generic: compat: Cleanup duplicate definitions 2022-04-26 13:35:54 -07:00
xtensa Kbuild updates for v5.18 2022-03-31 11:59:03 -07:00
.gitignore
Kconfig Networking fixes for 5.18-rc1 and rethook patches. 2022-03-31 11:23:31 -07:00