Skip to content
Unverified Commit 3908ba2e authored by Nick Hu's avatar Nick Hu Committed by Palmer Dabbelt
Browse files

RISC-V: Enable the IPI before workqueue_online_cpu()



Sometimes the hotplug cpu stalls at the arch_cpu_idle() for a while after
workqueue_online_cpu(). When cpu stalls at the idle loop, the reschedule
IPI is pending. However the enable bit is not enabled yet so the cpu stalls
at WFI until watchdog timeout. Therefore enable the IPI before the
workqueue_online_cpu() to fix the issue.

Fixes: 63c5484e ("workqueue: Add multiple affinity scopes and interface to select them")
Signed-off-by: default avatarNick Hu <nick.hu@sifive.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20240717031714.1946036-1-nick.hu@sifive.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 0c710050
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment