UPSTREAM: cpuidle: teo: Adjust handling of very short idle times
If the time till the next timer event is shorter than the target residency of the first idle state (state 0), the TEO governor does not update its metrics for any idle states, but arguably it should record a "hit" for idle state 0 in that case, so modify it to do that. Accordingly, also make it record an "early hit" for idle state 0 if the measured idle duration is less than its target residency, which allows one branch more to be dropped from teo_update(). link: https://lore.kernel.org/all/7219614.EvYhyI6sBW@kreacher/ Change-Id: I9c0e76b448df01d1161c2e03c3354627be7ff637 Signed-off-by:Rafael J. Wysocki <rafael.j.wysocki@intel.com> Bug: 281622981 (cherry picked from commit d3c33be1) Signed-off-by:
Chungkai Mei <chungkai@google.com>
Loading
Please sign in to comment