cpuidle: use first valid target residency as poll time
PATCH 1/1 cpuidle: use first valid target residency as poll time
commit 259231a045616c4101d023a8f4dcc8379af265a6 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 259231a045616c4101d023a8f4dcc8379af265a6
Signed-off-by Marcelo Tosatti <[email protected]>
drivers/cpuidle/cpuidle.c +1 -0
@@ -382,6 +382,7 @@ u64 cpuidle_poll_time(struct cpuidle_driver *drv,continue ; limit_ns = (u64 )drv->states[i].target_residency_ns; +break ; } dev->poll_limit_ns = limit_ns;
Quoted 11 lines · Marcelo Tosatti
commit
259231a045616c4101d023a8f4dcc8379af265a6changed, 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 259231a045616c4101d023a8f4dcc8379af265a6Signed-off-by Marcelo Tosatti <[email protected]>
Applied as 5.5 material (and tagged for 5.4+-stable), thanks!
Quoted 13 lines
drivers/cpuidle/cpuidle.c +1
-0@@ -382,6 +382,7 @@ u64 cpuidle_poll_time(struct cpuidle_driver *drv,continue ; limit_ns = (u64 )drv->states[i].target_residency_ns; +break ; } dev->poll_limit_ns = limit_ns;