File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -7577,7 +7577,6 @@ static unsigned long task_h_load(struct task_struct *p)
7577
7577
struct sg_lb_stats {
7578
7578
unsigned long avg_load ; /*Avg load across the CPUs of the group */
7579
7579
unsigned long group_load ; /* Total load over the CPUs of the group */
7580
- unsigned long sum_weighted_load ; /* Weighted load of group's tasks */
7581
7580
unsigned long load_per_task ;
7582
7581
unsigned long group_capacity ;
7583
7582
unsigned long group_util ; /* Total utilization of the group */
@@ -7944,7 +7943,6 @@ static inline void update_sg_lb_stats(struct lb_env *env,
7944
7943
sgs -> nr_numa_running += rq -> nr_numa_running ;
7945
7944
sgs -> nr_preferred_running += rq -> nr_preferred_running ;
7946
7945
#endif
7947
- sgs -> sum_weighted_load += weighted_cpuload (rq );
7948
7946
/*
7949
7947
* No need to call idle_cpu() if nr_running is not 0
7950
7948
*/
@@ -7963,7 +7961,7 @@ static inline void update_sg_lb_stats(struct lb_env *env,
7963
7961
sgs -> avg_load = (sgs -> group_load * SCHED_CAPACITY_SCALE ) / sgs -> group_capacity ;
7964
7962
7965
7963
if (sgs -> sum_nr_running )
7966
- sgs -> load_per_task = sgs -> sum_weighted_load / sgs -> sum_nr_running ;
7964
+ sgs -> load_per_task = sgs -> group_load / sgs -> sum_nr_running ;
7967
7965
7968
7966
sgs -> group_weight = group -> group_weight ;
7969
7967
You can’t perform that action at this time.
0 commit comments