lkml.org 
[lkml]   [2022]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.17 007/772] riscv: Fix irq_work when SMP is disabled
    Date
    From: Samuel Holland <samuel@sholland.org>

    commit 2273272823db6f67d57761df8116ae32e7f05bed upstream.

    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: 298447928bb1 ("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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    arch/riscv/include/asm/irq_work.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/arch/riscv/include/asm/irq_work.h
    +++ b/arch/riscv/include/asm/irq_work.h
    @@ -4,7 +4,7 @@

    static inline bool arch_irq_work_has_interrupt(void)
    {
    - return true;
    + return IS_ENABLED(CONFIG_SMP);
    }
    extern void arch_irq_work_raise(void);
    #endif /* _ASM_RISCV_IRQ_WORK_H */

    \
     
     \ /
      Last update: 2022-06-07 22:22    [W:2.536 / U:0.392 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site