]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: poll_state: Disregard disable idle states
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 3 Dec 2018 12:32:53 +0000 (13:32 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Dec 2018 11:07:07 +0000 (12:07 +0100)
commit3006f9753d60cd5b703e4d90059497e27d68b17b
treeb680b5950b8a9e998f6108a4f99c16760037b95c
parent51d469dd9b5ab2b428a0e7e5810e21c33c69c7d0
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: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/poll_state.c