summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChristian Loehle <christian.loehle@arm.com>2026-02-16 21:50:04 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-02-17 17:49:53 +0300
commit825d5d347935d5fc339df969c572e382393f40ec (patch)
tree92d6bc38a4d73b48f0779fc40b0f52b765f99ace /drivers
parent9b9c0ff095f04c27da1f761d77c19cd53594d18e (diff)
downloadlinux-825d5d347935d5fc339df969c572e382393f40ec.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpuidle/governors/teo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index 80f3ba942a06..bec0142377b8 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -338,12 +338,6 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
*/
cpu_data->sleep_length_ns = KTIME_MAX;
- /* Check if there is any choice in the first place. */
- if (drv->state_count < 2) {
- idx = 0;
- goto out_tick;
- }
-
if (!dev->states_usage[0].disable)
idx = 0;