mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
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: 298447928b ("riscv: Support irq_work via self IPIs")
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Heiko Stuebner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
11 lines
263 B
C
11 lines
263 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_RISCV_IRQ_WORK_H
|
|
#define _ASM_RISCV_IRQ_WORK_H
|
|
|
|
static inline bool arch_irq_work_has_interrupt(void)
|
|
{
|
|
return IS_ENABLED(CONFIG_SMP);
|
|
}
|
|
extern void arch_irq_work_raise(void);
|
|
#endif /* _ASM_RISCV_IRQ_WORK_H */
|