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:Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
Chungkai Mei <chungkai@google.com> (cherry picked from commit 030adec9) Bug: 281622981 Change-Id: I67e45081762bf6e87f9b02686f16f531ea54e7a1
Loading
Please sign in to comment