]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: use first valid target residency as poll time
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 6 Dec 2019 15:07:41 +0000 (13:07 -0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 9 Dec 2019 09:37:16 +0000 (10:37 +0100)
commit2c23371763b1b42aee4043522c69a21b7e0c77d8
treea7ef4aa9d5753e0abf72be184666790e424cf905
parent7855fcc07be326322b44982a21760fd9bd8e2b92
cpuidle: use first valid target residency as poll time

Commit 1d6f1afa365d ("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: 1d6f1afa365d ("cpuidle: add poll_limit_ns to cpuidle_device structure")
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Cc: 5.4+ <stable@vger.kernel.org> # 5.4+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c