Skip to content

Commit 9b9c0ff

Browse files
AboorvaDevarajanrafaeljw
authored andcommitted
cpuidle: haltpoll: 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: Aboorva Devarajan <aboorvad@linux.ibm.com> Reviewed-by: Christian Loehle <christian.loehle@arm.com> [ rjw: Extended the change to drop a redundant local variable ] Link: https://patch.msgid.link/20260216185005.1131593-3-aboorvad@linux.ibm.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent e5c9ffc commit 9b9c0ff

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/cpuidle/governors/haltpoll.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ static int haltpoll_select(struct cpuidle_driver *drv,
5050
struct cpuidle_device *dev,
5151
bool *stop_tick)
5252
{
53-
s64 latency_req = cpuidle_governor_latency_req(dev->cpu);
54-
55-
if (!drv->state_count || latency_req == 0) {
53+
if (cpuidle_governor_latency_req(dev->cpu) == 0) {
5654
*stop_tick = false;
5755
return 0;
5856
}

0 commit comments

Comments
 (0)