diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-10-19 19:11:49 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-19 19:11:49 -0700 |
| commit | 3e7ad9dfd43543582d2e0dae876d65bf216b73ba (patch) | |
| tree | 87a8a6e563cf61c38838f84c3f365ddfe79f2f1c /kernel | |
| parent | 0b44d7b07c57b1da4ece1f03b4520403f7ea59e5 (diff) | |
| parent | 04daea81fc151c75f2e6811be132b07322d4c536 (diff) | |
Merge "sched/hmp: Fix range checking for target load"
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched/hmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/hmp.c b/kernel/sched/hmp.c index b3dad1289ed4..7039eb8f1e63 100644 --- a/kernel/sched/hmp.c +++ b/kernel/sched/hmp.c @@ -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 = |
