sched: add function to create per-cpu idle threads

This commit is contained in:
2023-05-03 19:27:18 +01:00
parent ad58693dfb
commit c64577e24e
3 changed files with 23 additions and 2 deletions

View File

@@ -156,6 +156,9 @@ static inline void task_unlock_irqrestore(struct task *task, unsigned long flags
extern struct thread *thread_alloc(void);
extern kern_status_t thread_init(struct thread *thr, uintptr_t ip);
extern int thread_priority(struct thread *thr);
extern void idle(void);
extern struct thread *create_idle_thread(void);
extern void add_timer(struct timer *timer);
extern void remove_timer(struct timer *timer);