Commit 265b1be
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 b542b37 commit 265b1be
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
816 | | - | |
817 | | - | |
818 | | - | |
| 816 | + | |
| 817 | + | |
819 | 818 | | |
820 | 819 | | |
821 | 820 | | |
| |||
0 commit comments