Commit 17792ef0 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Treehugger Robot
Browse files

UPSTREAM: cpuidle: teo: Take negative "sleep length" values into account

Modify the TEO governor to take possible negative return values of
tick_nohz_get_next_hrtimer() into account by changing the data type
of some variables used by it to s64 which allows it to carry out
computations without potentially problematic data type conversions
into u64.

Also change the computations in teo_select() so that the negative
values themselves are handled in a natural way to avoid adding extra
negative value checks to that function.

link: https://lore.kernel.org/all/8741445.CDJkKcVGEf@kreacher/



Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarChungkai Mei <chungkai@google.com>
(cherry picked from commit 030adec9)
Bug: 281622981
Change-Id: I67e45081762bf6e87f9b02686f16f531ea54e7a1
parent 8187ee16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment