. load average calculation changed to calculate it all over every tick
instead of keeping a running total of enqueued processes (because somehow the load average was broken) . added SI_KPROC_TAB to get a copy of kernel process table from PM, for a top implementation . fixed arg to sys_nice() to make it an endpoint, not a slot number
This commit is contained in:
@@ -536,8 +536,6 @@ register struct proc *rp; /* this process is now runnable */
|
||||
/* Now select the next process to run. */
|
||||
pick_proc();
|
||||
|
||||
kloadinfo.procs_enqueued++;
|
||||
|
||||
#if DEBUG_SCHED_CHECK
|
||||
rp->p_ready = 1;
|
||||
check_runqueues("enqueue");
|
||||
@@ -587,13 +585,9 @@ register struct proc *rp; /* this process is no longer runnable */
|
||||
prev_xp = *xpp; /* save previous in chain */
|
||||
}
|
||||
|
||||
kloadinfo.procs_enqueued--;
|
||||
|
||||
#if DEBUG_SCHED_CHECK
|
||||
rp->p_ready = 0;
|
||||
check_runqueues("dequeue");
|
||||
if(kloadinfo.procs_enqueued < 0)
|
||||
kprintf("%d processes enqueued\n", kloadinfo.procs_enqueued);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user