diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-05-09 11:44:56 +0200 |
|---|---|---|
| committer | Nathan Chancellor <natechancellor@gmail.com> | 2018-05-13 10:50:06 -0700 |
| commit | 17b8f2c0da6b8f6f3a89b4d9a527867df1516a66 (patch) | |
| tree | 53d47c574215d280290894ce786bb3c7d20034a9 /net/lapb/lapb_timer.c | |
| parent | 25641632b2fd3648f6192c0479da0a39d1bbad5e (diff) | |
BACKPORT: cpufreq: schedutil: Avoid using invalid next_freq
If the next_freq field of struct sugov_policy is set to UINT_MAX,
it shouldn't be used for updating the CPU frequency (this is a
special "invalid" value), but after commit b7eaf1aab9f8 (cpufreq:
schedutil: Avoid reducing frequency of busy CPUs prematurely) it
may be passed as the new frequency to sugov_update_commit() in
sugov_update_single().
Fix that by adding an extra check for the special UINT_MAX value
of next_freq to sugov_update_single().
Fixes: b7eaf1aab9f8 (cpufreq: schedutil: Avoid reducing frequency of busy CPUs prematurely)
Reported-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 4.12+ <stable@vger.kernel.org> # 4.12+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 97739501f207efe33145b918817f305b822987f8)
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
