Name

update_sg_lb_stats — Update sched_group's statistics for load balancing.

Synopsis

void fsfuncupdate_sg_lb_stats (struct sched_domain * sd,
 struct sched_group * group,
 int this_cpu,
 enum cpu_idle_type idle,
 int load_idx,
 int local_group,
 const struct cpumask * cpus,
 int * balance,
 struct sg_lb_stats * sgs);
 

Arguments

sd

The sched_domain whose statistics are to be updated.

group

sched_group whose statistics are to be updated.

this_cpu

Cpu for which load balance is currently performed.

idle

Idle status of this_cpu

load_idx

Load index of sched_domain of this_cpu for load calc.

local_group

Does group contain this_cpu.

cpus

Set of cpus considered for load balancing.

balance

Should we balance.

sgs

variable to hold the statistics for this group.