cpuidle: teo: Skip sleep length computation for low latency constraints
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Jan 2025 16:08:50 +0000 (17:08 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Jan 2025 16:19:53 +0000 (17:19 +0100)
commit16c8d7586c196cddcc8822a946ef03c9cfabae30
tree5cd2c4f628d17ab9b3842eb0dfb6b2f41f7afb28
parent65e18e6544751ac25dc284794566ee90d65a379e
cpuidle: teo: Skip sleep length computation for low latency constraints

If the idle state exit latency constraint is sufficiently low, it
is better to avoid the additional latency related to calling
tick_nohz_get_sleep_length().  It is also not necessary to compute
the sleep length in that case because shallow idle state selection
will be forced then regardless of the recent wakeup history.

Accordingly, skip the sleep length computation and subsequent
checks of the exit latency constraint is low enough.

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