MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sched_load

Function sched_load

freebsd/kern/sched_ule.c:2770–2784  ·  view source on GitHub ↗

* Return the total system load. */

Source from the content-addressed store, hash-verified

2768 * Return the total system load.
2769 */
2770int
2771sched_load(void)
2772{
2773#ifdef SMP
2774 int total;
2775 int i;
2776
2777 total = 0;
2778 CPU_FOREACH(i)
2779 total += TDQ_CPU(i)->tdq_sysload;
2780 return (total);
2781#else
2782 return (TDQ_SELF()->tdq_sysload);
2783#endif
2784}
2785
2786int
2787sched_sizeof_proc(void)

Callers 1

loadavFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected