Commit 3ac26b9
committed
Add enqueue path to sched_enqueue_task()
Previously, `sched_enqueue_task()` only marked task state as TASK_READY
to represent the task has been enqueued due to the original scheduler
selects the next task based on the global list and all tasks are kept in
it.
After new data structure, ready_queue[], is added for keeping runnable
tasks, the enqueuing task API should push the embedded linkage list node,
rq_node, into the corresponding ready_queue.
This change aligns with the new task selection based on the ready queue.1 parent eedb4c4 commit 3ac26b9
1 file changed
+23
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
366 | 368 | | |
367 | | - | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
371 | 390 | | |
372 | 391 | | |
373 | 392 | | |
| |||
0 commit comments