sched,livepatch: Use wake_up_if_idle()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 21 Sep 2021 20:16:02 +0000 (22:16 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 14 Oct 2021 11:09:25 +0000 (13:09 +0200)
commit5de62ea84abd732ded7c5569426fd71c0420f83e
treeaa81d924076649258e23da654192555e9eae7dea
parent8850cb663b5cda04d33f9cfbc38889d73d3c8e24
sched,livepatch: Use wake_up_if_idle()

Make sure to prod idle CPUs so they call klp_update_patch_state().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Tested-by: Vasily Gorbik <gor@linux.ibm.com> # on s390
Link: https://lkml.kernel.org/r/20210929151723.162004989@infradead.org
include/linux/sched/idle.h
kernel/livepatch/transition.c