Implement getloadavg()
v2: autoload PerfDataHelper functions Keep loadavg in shared memory Guard loadavg access by a mutex Initialize loadavg to the current load v3: Shared memory version bump isn't needed if we are only extending it Remove unused autoload Mark inititalized flags as NO_COPY for correct behaviour in fork child Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
This commit is contained in:
@ -328,6 +328,7 @@ shared_info::initialize ()
|
||||
init_obcaseinsensitive (); /* Initialize obcaseinsensitive */
|
||||
tty.init (); /* Initialize tty table */
|
||||
mt.initialize (); /* Initialize shared tape information */
|
||||
loadavg.initialize (); /* Initialize loadavg information */
|
||||
/* Defer debug output printing the installation root and installation key
|
||||
up to this point. Debug output except for system_printf requires
|
||||
the global shared memory to exist. */
|
||||
|
Reference in New Issue
Block a user