Remove the SSLEEP case from the load average computation. This has

been a no-op for as long as our CVS history goes back. Processes in
state SSLEEP could only be counted if p_slptime == 0, but immediately
before loadav() is called, schedcpu() has just incremented p_slptime
on all SSLEEP processes.
This commit is contained in:
Ian Dowse 2001-10-04 22:33:31 +00:00
parent e6f9ad0779
commit 564bfabecb

View file

@ -88,11 +88,6 @@ loadav(struct loadavg *avg)
FOREACH_PROC_IN_SYSTEM(p) {
FOREACH_KSEGRP_IN_PROC(p, kg) {
switch (p->p_stat) {
case SSLEEP:
if (kg->kg_pri.pri_level > PZERO ||
kg->kg_slptime != 0) /* ke? */
goto nextproc;
/* FALLTHROUGH */
case SRUN:
if ((p->p_flag & P_NOLOAD) != 0)
goto nextproc;