]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: teo: Adjust handling of very short idle times
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Mar 2021 18:19:03 +0000 (20:19 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Apr 2021 17:26:44 +0000 (19:26 +0200)
commit730ee5fc820ed1d3b398c155848071e500832aa2
treea89c96fbacaef035bb19cb2f19c48d3328d9162a
parentc25eb69bad0a1429b5ac7715b7fa2bf451bfee4e
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().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governors/teo.c