未验证 提交 22732728 编写于 作者: S Samuel Holland 提交者: Palmer Dabbelt

riscv: Fix irq_work when SMP is disabled

irq_work is triggered via an IPI, but the IPI infrastructure is not
included in uniprocessor kernels. As a result, irq_work never runs.
Fall back to the tick-based irq_work implementation on uniprocessor
configurations.

Fixes: 29844792 ("riscv: Support irq_work via self IPIs")
Signed-off-by: NSamuel Holland <samuel@sholland.org>
Reviewed-by: NHeiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220430030025.58405-1-samuel@sholland.org
Cc: stable@vger.kernel.org
Signed-off-by: NPalmer Dabbelt <palmer@rivosinc.com>
上级 26b8f69e
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
static inline bool arch_irq_work_has_interrupt(void) static inline bool arch_irq_work_has_interrupt(void)
{ {
return true; return IS_ENABLED(CONFIG_SMP);
} }
extern void arch_irq_work_raise(void); extern void arch_irq_work_raise(void);
#endif /* _ASM_RISCV_IRQ_WORK_H */ #endif /* _ASM_RISCV_IRQ_WORK_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册