]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpuidle: teo: Remove single state handling
authorChristian Loehle <christian.loehle@arm.com>
Mon, 16 Feb 2026 18:50:04 +0000 (00:20 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 17 Feb 2026 14:49:53 +0000 (15:49 +0100)
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>
drivers/cpuidle/governors/teo.c

index 80f3ba942a06772e830621528b1d90c9ace3e358..bec0142377b8f6df77e501aa3ec65e42be965b1d 100644 (file)
@@ -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;