diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-10-15 13:51:45 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-10-18 09:34:13 +0200 |
commit | 12b65eadf0bd41cf0dbf460f13bcd310a81afe2b (patch) | |
tree | 21c6aa8bcaaf1aad8f13ed6855212dffd33f89a8 /kernel | |
parent | bde091ece2ad3f78d0896870f041bc52761ea3c1 (diff) | |
download | linux-12b65eadf0bd41cf0dbf460f13bcd310a81afe2b.tar.bz2 |
cpuidle: menu: Drop redundant comparison
Since the correction factor cannot be greater than RESOLUTION * DECAY,
the result of the predicted_us computation in menu_select() cannot be
greater than data->next_timer_us, so it is not necessary to compare
the "typical interval" value coming from get_typical_interval() with
data->next_timer_us separately.
It is sufficient to copmare predicted_us with the return value of
get_typical_interval() directly, so do that and drop the now
redundant expected_interval variable.
No intentional changes of behavior.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions