mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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:
parent
e6f9ad0779
commit
564bfabecb
1 changed files with 0 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue