]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix irq_work when SMP is disabled
authorSamuel Holland <samuel@sholland.org>
Sat, 30 Apr 2022 03:00:23 +0000 (22:00 -0500)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 2 Jun 2022 04:46:31 +0000 (21:46 -0700)
commit4c5e1b6b8bbe8bdf41c88c00387dbed0b063139b
treeaedffefd64427cf71b07a276c6c573077c085e8d
parenta6a5f829febf9e0dc7ad173194a5ff5c9e77018e
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: f00d8c70453f ("riscv: Support irq_work via self IPIs")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220430030025.58405-1-samuel@sholland.org
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/irq_work.h