Skip to content

Commit

Permalink
smp: Wake ksoftirqd from idle when it is not running.
Browse files Browse the repository at this point in the history
ksoftirqd should be woken if it is not idle, not the other way around.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
  • Loading branch information
Sebastian Andrzej Siewior committed Sep 24, 2021
1 parent 4dcd0e1 commit da9f1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ void flush_smp_call_function_from_idle(void)
} else {
struct task_struct *ksoftirqd = this_cpu_ksoftirqd();

if (ksoftirqd && task_is_running(ksoftirqd))
if (ksoftirqd && !task_is_running(ksoftirqd))
wake_up_process(ksoftirqd);
}
}
Expand Down

0 comments on commit da9f1e9

Please sign in to comment.