summaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2025-04-24 20:15:41 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2025-04-26 09:58:12 +0800
commitbb0511d59db9b3e40c8d51f0d151ccd0fd44071d (patch)
tree0791939e7337a0c2cd4b396195c088910f9a181d /net/lapb/lapb_iface.c
parentfb8e9f59d6f292c3d9fea6c155c22ea5fc3053ab (diff)
downloadlinux-bb0511d59db9b3e40c8d51f0d151ccd0fd44071d.tar.gz
linux-bb0511d59db9b3e40c8d51f0d151ccd0fd44071d.tar.bz2
linux-bb0511d59db9b3e40c8d51f0d151ccd0fd44071d.zip
LoongArch: Make regs_irqs_disabled() more clear
In the current code, the definition of regs_irqs_disabled() is actually "!(regs->csr_prmd & CSR_CRMD_IE)" because arch_irqs_disabled_flags() is defined as "!(flags & CSR_CRMD_IE)", it looks a little strange. Define regs_irqs_disabled() as !(regs->csr_prmd & CSR_PRMD_PIE) directly to make it more clear, no functional change. While at it, the return value of regs_irqs_disabled() is true or false, so change its type to reflect that and also make it always inline. Fixes: 803b0fc5c3f2 ("LoongArch: Add process management") Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions