Commit dfb0f170 authored by Josh Poimboeuf's avatar Josh Poimboeuf

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.orgSigned-off-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
parent 69dee6f0
...@@ -75,7 +75,7 @@ static noinline int __cpuidle cpu_idle_poll(void) ...@@ -75,7 +75,7 @@ static noinline int __cpuidle cpu_idle_poll(void)
void __weak arch_cpu_idle_prepare(void) { } void __weak arch_cpu_idle_prepare(void) { }
void __weak arch_cpu_idle_enter(void) { } void __weak arch_cpu_idle_enter(void) { }
void __weak arch_cpu_idle_exit(void) { } void __weak arch_cpu_idle_exit(void) { }
void __weak arch_cpu_idle_dead(void) { } void __weak arch_cpu_idle_dead(void) { while (1); }
void __weak arch_cpu_idle(void) void __weak arch_cpu_idle(void)
{ {
cpu_idle_force_poll = 1; cpu_idle_force_poll = 1;
......
Markdown is supported
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