cpuidle: teo: Rearrange idle state lookup code
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Jan 2025 18:34:22 +0000 (19:34 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Jan 2025 16:15:44 +0000 (17:15 +0100)
commit425b753645767049f1a3eab02f39120c02156b72
tree3592fe642cbd031462bdb3aab66f16ba780f911b
parent5a597a19a2148d1c5cd987907a60c042ab0f62d5
cpuidle: teo: Rearrange idle state lookup code

Rearrange code in the idle state lookup loop in teo_select() to make it
somewhat easier to follow and update comments around it.

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