Commit 2a01530
committed
Add sched_switch_to_idle() helper in the scheduler
Previously, when all ready queues were empty, the scheduler
would trigger a kernel panic. This condition should instead
transition into the idle task rather than panic.
The new sched_switch_to_idle() helper centralizes this logic,
making the path to idle clearer and more readable.1 parent 9518c6f commit 2a01530
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
| 518 | + | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| |||
0 commit comments