Merge "lpm-levels: Enter shallowest state if predicted sleep length is less"
This commit is contained in:
commit
ae03bcca0a
1 changed files with 2 additions and 2 deletions
|
@ -749,8 +749,8 @@ static int cpu_power_select(struct cpuidle_device *dev,
|
|||
if (next_wakeup_us > max_residency[i]) {
|
||||
predicted = lpm_cpuidle_predict(dev, cpu,
|
||||
&idx_restrict, &idx_restrict_time);
|
||||
if (predicted < min_residency[i])
|
||||
predicted = 0;
|
||||
if (predicted && (predicted < min_residency[i]))
|
||||
predicted = min_residency[i];
|
||||
} else
|
||||
invalidate_predict_history(dev);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue