load average measurement implementation, accessable through

getloadavg() system call in the library.
This commit is contained in:
Ben Gras
2005-11-14 15:50:46 +00:00
parent aabef59faa
commit 87f2236ad2
7 changed files with 59 additions and 0 deletions

View File

@@ -142,6 +142,9 @@ PUBLIC void main()
alloc_segments(rp);
}
/* Special compensation for IDLE - don't let it count in the load average. */
kloadinfo.procs_enqueued--;
#if ENABLE_BOOTDEV
/* Expect an image of the boot device to be loaded into memory as well.
* The boot device is the last module that is loaded into memory, and,