Merge "sched/hmp: Fix range checking for target load"

This commit is contained in:
Linux Build Service Account 2016-10-19 19:11:49 -07:00 committed by Gerrit - the friendly Code Review server
commit 3e7ad9dfd4

View file

@ -201,7 +201,7 @@ int sched_update_freq_max_load(const cpumask_t *cpumask)
entry = &max_load->freqs[i];
freq = costs[i].freq;
hpct = get_freq_max_load(cpu, freq);
if (hpct <= 0 && hpct > 100)
if (hpct <= 0 || hpct > 100)
hpct = 100;
hfreq = div64_u64((u64)freq * hpct, 100);
entry->hdemand =