]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpuidle: teo: Replace time_span_ns with a flag
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Jan 2025 18:51:59 +0000 (19:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Jan 2025 16:18:02 +0000 (17:18 +0100)
commit65e18e6544751ac25dc284794566ee90d65a379e
tree423e105bcd64ad6bce2e7a5714c9f5284a2e0967
parentddcfa7964677b1298712edb931a98ac25ffd2fb6
cpuidle: teo: Replace time_span_ns with a flag

After recent updates, the time_span_ns field in struct teo_cpu has
become an indicator on whether or not the most recent wakeup has been
"genuine" which may as well be indicated by a bool field without
calling local_clock(), so update the code accordingly.

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/6010475.MhkbZ0Pkbq@rjwysocki.net
drivers/cpuidle/governors/teo.c