* Find the cpu with the highest load via the highest loaded path. */
| 821 | * Find the cpu with the highest load via the highest loaded path. |
| 822 | */ |
| 823 | static inline int |
| 824 | sched_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 | |
| 835 | static void |
| 836 | sched_balance_group(struct cpu_group *cg) |
no test coverage detected