Skip to content

Commit 93983a9

Browse files
cloehlerafaeljw
authored andcommitted
cpuidle: menu: 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> [ rjw: Rebase on top of the cpuidle changes merged recently ] Link: https://patch.msgid.link/20260216185005.1131593-5-aboorvad@linux.ibm.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 825d5d3 commit 93983a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/cpuidle/governors

drivers/cpuidle/governors/menu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
281281
data->bucket = BUCKETS - 1;
282282
}
283283

284-
if (drv->state_count <= 1 || latency_req == 0 ||
284+
if (latency_req == 0 ||
285285
((data->next_timer_ns < drv->states[1].target_residency_ns ||
286286
latency_req < drv->states[1].exit_latency_ns) &&
287287
!dev->states_usage[0].disable)) {

0 commit comments

Comments
 (0)