Skip to content

Commit 29b76cf

Browse files
committed
Make sched_wakeup_task() globally visible
Previously, sched_wakeup_task() was limited to internal use within the scheduler module. This change makes it globally visible so that it can be reused in semaphore.c for task wake-up operations.
1 parent 3572bea commit 29b76cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/sys/task.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,4 +316,7 @@ int32_t app_main(void);
316316
* Only one idle task exists per hart. Its priority is fixed to the
317317
* lowest level and its time slice is zero.
318318
*/
319-
void idle_task_init(void);
319+
void idle_task_init(void);
320+
321+
/* Wake up and enqueue task into ready queue */
322+
void sched_wakeup_task(tcb_t *);

0 commit comments

Comments
 (0)