Commit 1d91b39
committed
Refactor mo_task_spawn() for the new scheduler
Move sched_enqueue_task() into a critical section to protect ready_queue[]
integrity, as the API modifies shared scheduler resources.
Initialize the embedded rq_node when a task spawns and set its next pointer
to NULL to ensure deterministic linkage for ready-queue insertion.
Bind the initial task slot using rq_node instead of the global task list,
matching the new ready-queue selection model.
This aligns task-spawn behavior with rq_node-based scheduling semantics.1 parent 953e3c7 commit 1d91b39
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
823 | 827 | | |
824 | | - | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
825 | 832 | | |
826 | 833 | | |
827 | 834 | | |
| |||
841 | 848 | | |
842 | 849 | | |
843 | 850 | | |
844 | | - | |
845 | 851 | | |
846 | 852 | | |
847 | 853 | | |
| |||
0 commit comments