Commit 8187ee16 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Treehugger Robot
Browse files

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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Bug: 281622981
(cherry picked from commit d3c33be1)
Signed-off-by: default avatarChungkai Mei <chungkai@google.com>
parent c3c739b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment