Name

find_new_ilb — Finds the optimum idle load balancer for nomination.

Synopsis

int find_new_ilb (int cpu);
 

Arguments

cpu

The cpu which is nominating a new idle_load_balancer.

Returns

Returns the id of the idle load balancer if it exists, Else, returns >= nr_cpu_ids.

This algorithm picks the idle load balancer such that it belongs to a semi-idle powersavings sched_domain. The idea is to try and avoid completely idle packages/cores just for the purpose of idle load balancing when there are other idle cpu's which are better suited for that job.