diff options
Diffstat (limited to 'kernel/proc/sched.c')
-rw-r--r-- | kernel/proc/sched.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/kernel/proc/sched.c b/kernel/proc/sched.c index b422ef1..98af80d 100644 --- a/kernel/proc/sched.c +++ b/kernel/proc/sched.c @@ -162,8 +162,6 @@ void sched_init(void) */ long sched_cancellable_sleep_on(ktqueue_t *queue) { - // NOT_YET_IMPLEMENTED("PROCS: sched_cancellable_sleep_on"); - KASSERT(queue != NULL); if (curthr->kt_cancelled) @@ -190,8 +188,6 @@ long sched_cancellable_sleep_on(ktqueue_t *queue) */ void sched_cancel(kthread_t *thr) { - // NOT_YET_IMPLEMENTED("PROCS: sched_cancel"); - thr->kt_cancelled = 1; if (thr->kt_state == KT_SLEEP_CANCELLABLE) @@ -234,9 +230,6 @@ void sched_cancel(kthread_t *thr) */ void sched_switch(ktqueue_t *queue) { - // NOT_YET_IMPLEMENTED("PROCS: sched_switch"); - - // KASSERT(intr_getipl == IPL_HIGH); intr_disable(); int oldIPL = intr_setipl(IPL_LOW); // allow interrupts to wake up the idling core @@ -274,16 +267,6 @@ void sched_yield() */ void sched_make_runnable(kthread_t *thr) { - // NOT_YET_IMPLEMENTED("PROCS: sched_make_runnable"); - - dbg(DBG_SCHED, "Making thread with proc pid %d runnable\n in thread\n", thr->kt_proc->p_pid); - if (curthr) - { - dbg(DBG_SCHED, "I did this ^^ with thread %d\n", curthr->kt_proc->p_pid); - } else { - dbg(DBG_SCHED, "I did this ^^ with a null thread!\n"); - } - KASSERT(thr != curthr); KASSERT(thr->kt_state != KT_RUNNABLE); @@ -309,8 +292,6 @@ void sched_make_runnable(kthread_t *thr) */ void sched_sleep_on(ktqueue_t *q) { - // NOT_YET_IMPLEMENTED("PROCS: sched_sleep_on"); - int oldIPL = intr_setipl(IPL_HIGH); curthr->kt_state = KT_SLEEP; sched_switch(q); @@ -330,8 +311,6 @@ void sched_sleep_on(ktqueue_t *q) */ void sched_wakeup_on(ktqueue_t *q, kthread_t **ktp) { - // NOT_YET_IMPLEMENTED("PROCS: sched_wakeup_on"); - if (sched_queue_empty(q) || q == NULL) { if (ktp) @@ -357,8 +336,6 @@ void sched_wakeup_on(ktqueue_t *q, kthread_t **ktp) */ void sched_broadcast_on(ktqueue_t *q) { - // NOT_YET_IMPLEMENTED("PROCS: sched_broadcast_on"); - while (!sched_queue_empty(q)) { sched_make_runnable(ktqueue_dequeue(q)); |