summaryrefslogtreecommitdiffstats
path: root/mm/percpu.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-03-29 20:19:03 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-04-07 19:26:44 +0200
commitd3c33be1f350e7fd2b04381b000f3f950bd1ba77 (patch)
treea89c96fbacaef035bb19cb2f19c48d3328d9162a /mm/percpu.c
parent2ab80d46fead0309d7f190d8023c8d64b2ffcbd5 (diff)
downloadlinux-d3c33be1f350e7fd2b04381b000f3f950bd1ba77.tar.bz2
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>
Diffstat (limited to 'mm/percpu.c')
0 files changed, 0 insertions, 0 deletions