Commit 3474f1a
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 ec07239 commit 3474f1a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
| 523 | + | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| |||
0 commit comments