Commit 1c68d20
committed
Add sched_wakeup_task() in mo_sem_signal()
Previously, mo_sem_signal() only changed the awakened task state
to TASK_READY when a semaphore signal was triggered. In the new
scheduler design, which selects runnable tasks from ready queues,
the awakened task must also be enqueued for scheduling.
This change invokes sched_wakeup_task() to perform the enqueue
operation, ensuring the awakened task is properly inserted into
the ready queue.1 parent 1abd962 commit 1c68d20
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments