riscv: Make regs_irqs_disabled() more clear
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 22 Apr 2025 11:31:56 +0000 (19:31 +0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Thu, 5 Jun 2025 18:10:17 +0000 (11:10 -0700)
commitd7e0cce103663a60b14c52a0bcad62c7e8c0e6e8
tree11c1ddfe59ef3960658098a24b5990aa35dfce81
parent4d6319289e8661a1845dde5d05859afc21ec3ed9
riscv: Make regs_irqs_disabled() more clear

The return value of regs_irqs_disabled() is true or false, so change
its type to reflect that and also make it always inline.

Suggested-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250422113156.25742-1-yangtiezhu@loongson.cn
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
arch/riscv/include/asm/ptrace.h