Skip to content

Commit 36fcb42

Browse files
matosattirafaeljw
authored andcommitted
cpuidle: use first valid target residency as poll time
Commit 259231a ("cpuidle: add poll_limit_ns to cpuidle_device structure") changed, by mistake, the target residency from the first available sleep state to the last available sleep state (which should be longer). This might cause excessive polling. Fixes: 259231a ("cpuidle: add poll_limit_ns to cpuidle_device structure") Signed-off-by: Marcelo Tosatti <[email protected]> Cc: 5.4+ <[email protected]> # 5.4+ Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent e42617b commit 36fcb42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/cpuidle/cpuidle.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ u64 cpuidle_poll_time(struct cpuidle_driver *drv,
382382
continue;
383383

384384
limit_ns = (u64)drv->states[i].target_residency_ns;
385+
break;
385386
}
386387

387388
dev->poll_limit_ns = limit_ns;

0 commit comments

Comments
 (0)