Commit 95d9f81
committed
Add dequeue path in sched_dequeue_task()
Previously, sched_dequeue_task() was a no-op stub, which was sufficient
when the scheduler selected tasks from the global list. Since new data
structure, ready_queue, is added for keeping all runnable tasks, a dequeue
path is required to remove tasks from ready queue to ensure it always
holds runnable tasks.
This change aligns with the non-runnable task should not in the ready
queue.1 parent 3ac26b9 commit 95d9f81
1 file changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
402 | 418 | | |
403 | 419 | | |
404 | 420 | | |
| |||
0 commit comments