diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-09-21 22:16:02 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-10-14 13:09:25 +0200 |
commit | 5de62ea84abd732ded7c5569426fd71c0420f83e (patch) | |
tree | aa81d924076649258e23da654192555e9eae7dea /include/linux/sched/idle.h | |
parent | 8850cb663b5cda04d33f9cfbc38889d73d3c8e24 (diff) |
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
Diffstat (limited to 'include/linux/sched/idle.h')
-rw-r--r-- | include/linux/sched/idle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched/idle.h b/include/linux/sched/idle.h index 22873d276be6..d73d314d59c6 100644 --- a/include/linux/sched/idle.h +++ b/include/linux/sched/idle.h @@ -11,7 +11,11 @@ enum cpu_idle_type { CPU_MAX_IDLE_TYPES }; +#ifdef CONFIG_SMP extern void wake_up_if_idle(int cpu); +#else +static inline void wake_up_if_idle(int cpu) { } +#endif /* * Idle thread specific functions to determine the need_resched |