]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpuidle: teo: Simplify handling of total events count
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Jan 2025 18:50:23 +0000 (19:50 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Jan 2025 16:17:56 +0000 (17:17 +0100)
commitddcfa7964677b1298712edb931a98ac25ffd2fb6
treeabf0c7e725e8b5c640ef1e9025c3fb405fa45234
parent13ed5c4a6d9c91755227b7b0fab7b2543f6adfd2
cpuidle: teo: Simplify handling of total events count

Instead of computing the total events count from scratch every time,
decay it and add a PULSE value to it in teo_update().

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
Tested-by: Aboorva Devarajan <aboorvad@linux.ibm.com>
Tested-by: Christian Loehle <christian.loehle@arm.com>
Link: https://patch.msgid.link/9388883.CDJkKcVGEf@rjwysocki.net
drivers/cpuidle/governors/teo.c