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:
Syed Rameez Mustafa 2016-09-02 17:58:33 -07:00
parent 057bdafd97
commit 475125d9f9

View file

@ -7220,6 +7220,10 @@ static inline void init_sd_lb_stats(struct sd_lb_stats *sds)
.avg_load = 0UL,
.sum_nr_running = 0,
.group_type = group_other,
#ifdef CONFIG_SCHED_HMP
.sum_nr_big_tasks = 0UL,
.group_cpu_load = 0ULL,
#endif
},
};
}