Skip to content

Commit 825d5d3

Browse files
cloehlerafaeljw
authored andcommitted
cpuidle: teo: Remove single state handling
cpuidle systems where the governor has no choice because there's only a single idle state are now handled by cpuidle core and bypass the governor, so remove the related handling. Signed-off-by: Christian Loehle <christian.loehle@arm.com> Link: https://patch.msgid.link/20260216185005.1131593-4-aboorvad@linux.ibm.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 9b9c0ff commit 825d5d3

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • drivers/cpuidle/governors

drivers/cpuidle/governors/teo.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,12 +338,6 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
338338
*/
339339
cpu_data->sleep_length_ns = KTIME_MAX;
340340

341-
/* Check if there is any choice in the first place. */
342-
if (drv->state_count < 2) {
343-
idx = 0;
344-
goto out_tick;
345-
}
346-
347341
if (!dev->states_usage[0].disable)
348342
idx = 0;
349343

0 commit comments

Comments
 (0)