Skip to content
Snippets Groups Projects
Commit 800fb34a authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

cpuidle: poll_state: Disregard disable idle states


When computing the limit of time to spend in the loop in poll_idle(),
use the target residency of the first enabled idle state deeper than
state 0 instead of always using the target residency of state 1.

This helps when state 1 is disabled for diagnostics, for instance.

Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent aa5eee35
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment