Commit b66b154
committed
Add dequeue helper for mutex lock
Currently, mo_mutex_lock() will call mutex_block_atomic() to mark the
running task as TASK_BLOCKED so that it won't be selected by the old scheduler.
To support the ready queue consistency that always keeps runnable tasks,
the dequeuing path should be included when mutex_block_atomic() is
called.
This commit adds _sched_blocked_dequeue() helper and will be applied in
mutex_block_atomic() in the following commit.1 parent b608ac8 commit b66b154
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
453 | 462 | | |
454 | 463 | | |
455 | 464 | | |
| |||
0 commit comments