diff --git a/include/linux/energy_model.h b/include/linux/energy_model.h index 73f8c3cb9588..82cd68bbb8f5 100644 --- a/include/linux/energy_model.h +++ b/include/linux/energy_model.h @@ -83,6 +83,9 @@ static inline unsigned long em_pd_energy(struct em_perf_domain *pd, struct em_cap_state *cs; int i, cpu; + if (!sum_util) + return 0; + /* * In order to predict the capacity state, map the utilization of the * most utilized CPU of the performance domain to a requested frequency,