sched: implement waitqueues

This commit is contained in:
2023-05-10 20:29:57 +01:00
parent b3957b311a
commit 63f27adb1b
3 changed files with 100 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ void rq_enqueue(struct runqueue *rq, struct thread *thr)
rq->rq_nthreads++;
rq->rq_readybits |= PRIO_MASK(thread_priority(thr));
thr->tr_rq = rq;
}
struct runqueue *cpu_rq(unsigned int cpu)