Commit 1f6a214
committed
Add sched_enqueue_task() in mo_task_resume()
Previously, mo_task_resume() only changed resumed task state to TASK_READY,
but didn't enqueue it into ready queue. As a result, the scheduler could
not select the resumed task for execution.
This change adds sched_enqueue_task() to insert the resumed task into the
appropriate ready queue and update the ready bitmap, ensuring the resumed
task becomes schedulable again.1 parent b97ee20 commit 1f6a214
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
822 | | - | |
823 | | - | |
| 821 | + | |
| 822 | + | |
824 | 823 | | |
825 | 824 | | |
826 | 825 | | |
| |||
0 commit comments