cpuidle: teo: Avoid stopping the tick unnecessarily when bailing out
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 31 Jul 2023 19:03:09 +0000 (21:03 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Aug 2023 20:37:03 +0000 (22:37 +0200)
commit04bae4e2267d49eb9cfec403acd0462b8d00d637
tree0d7d4222ac6fa05122e92e1370fca913a5c9ce75
parent3f0b0966b30982e843950b170b7a9ddfd8094428
cpuidle: teo: Avoid stopping the tick unnecessarily when bailing out

When teo_select() is going to return early in some special cases, make
it avoid stopping the tick if the idle state to be returned is shallow.

In particular, never stop the tick if state 0 is to be returned.

Link: https://lore.kernel.org/linux-pm/CAJZ5v0jJxHj65r2HXBTd3wfbZtsg=_StzwO1kA5STDnaPe_dWA@mail.gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-and-tested-by: Kajetan Puchalski <kajetan.puchalski@arm.com>
drivers/cpuidle/governors/teo.c