]> git.ipfire.org Git - thirdparty/linux.git/commit
cpuidle: governors: teo: Avoid fake intercepts produced by tick
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Jan 2026 19:44:53 +0000 (20:44 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2026 20:50:38 +0000 (21:50 +0100)
commit60836533b4c7b69e6cb815c87f089e39c2878acd
tree79744aa23659355df53b85a09c53f098082be7c2
parent4bd2221f231d798b01027367857d9ba2f24f6ea0
cpuidle: governors: teo: Avoid fake intercepts produced by tick

Tick wakeups can lead to fake intercepts that may skew idle state
selection towards shallow states, so it is better to avoid counting
them as intercepts.

For this purpose, add a check causing teo_update() to only count
tick wakeups as intercepts if intercepts within the tick period
range are at least twice as frequent as any other events.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
Link: https://patch.msgid.link/3404606.44csPzL39Z@rafael.j.wysocki
drivers/cpuidle/governors/teo.c