Commit 953e3c7
committed
Refactor priority-change path in mo_task_priority()
Previously, mo_task_priority() only updated the task’s time slice and
priority level. With the new scheduler design, tasks are kept in
per-priority ready queues, so mo_task_priority() must also handle
migrating tasks between these queues.
This change supports task migration from original ready queue to the new
priority ready queue.1 parent e92dda4 commit 953e3c7
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
999 | 1013 | | |
1000 | 1014 | | |
1001 | 1015 | | |
1002 | 1016 | | |
1003 | 1017 | | |
1004 | 1018 | | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1005 | 1023 | | |
1006 | 1024 | | |
1007 | 1025 | | |
| |||
0 commit comments