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

Function sched_highest

freebsd/kern/sched_ule.c:823–833  ·  view source on GitHub ↗

* Find the cpu with the highest load via the highest loaded path. */

Source from the content-addressed store, hash-verified

821 * Find the cpu with the highest load via the highest loaded path.
822 */
823static inline int
824sched_highest(const struct cpu_group *cg, cpuset_t mask, int minload)
825{
826 struct cpu_search high;
827
828 high.cs_cpu = -1;
829 high.cs_mask = mask;
830 high.cs_limit = minload;
831 cpu_search_highest(cg, &high);
832 return high.cs_cpu;
833}
834
835static void
836sched_balance_group(struct cpu_group *cg)

Callers 3

sched_balance_groupFunction · 0.85
tdq_idledFunction · 0.85
tdq_trystealFunction · 0.85

Calls 1

cpu_search_highestFunction · 0.85

Tested by

no test coverage detected