Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched/idle: Make sure weak version of arch_cpu_idle_dead() doesn't return

arch_cpu_idle_dead() should never return. Make it so.

Link: https://lore.kernel.org/r/cf5ad95eef50f7704bb30e7770c59bfe23372af7.1676358308.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>

+1 -1
+1 -1
kernel/sched/idle.c
··· 75 75 void __weak arch_cpu_idle_prepare(void) { } 76 76 void __weak arch_cpu_idle_enter(void) { } 77 77 void __weak arch_cpu_idle_exit(void) { } 78 - void __weak arch_cpu_idle_dead(void) { } 78 + void __weak arch_cpu_idle_dead(void) { while (1); } 79 79 void __weak arch_cpu_idle(void) 80 80 { 81 81 cpu_idle_force_poll = 1;