sched: Initialize HMP stats inside init_sd_lb_stats()
This ensures that the load balancer always works correctly even without compiler optimizations. Change-Id: I36408ae65833b624401e60edfb50c19cc061d7bf Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
This commit is contained in:
parent
057bdafd97
commit
475125d9f9
1 changed files with 4 additions and 0 deletions
|
@ -7220,6 +7220,10 @@ static inline void init_sd_lb_stats(struct sd_lb_stats *sds)
|
||||||
.avg_load = 0UL,
|
.avg_load = 0UL,
|
||||||
.sum_nr_running = 0,
|
.sum_nr_running = 0,
|
||||||
.group_type = group_other,
|
.group_type = group_other,
|
||||||
|
#ifdef CONFIG_SCHED_HMP
|
||||||
|
.sum_nr_big_tasks = 0UL,
|
||||||
|
.group_cpu_load = 0ULL,
|
||||||
|
#endif
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue