]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cpuidle: add poll_limit_ns to cpuidle_device structure
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 3 Jul 2019 23:51:26 +0000 (20:51 -0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Jul 2019 15:27:37 +0000 (17:27 +0200)
commit259231a045616c4101d023a8f4dcc8379af265a6
tree633877050928b1b22ee77920d79b5bc548f29471
parentfa86ee90eb1111267de67cb4272b5ce711f18cbb
cpuidle: add poll_limit_ns to cpuidle_device structure

Add a poll_limit_ns variable to cpuidle_device structure.

Calculate and configure it in the new cpuidle_poll_time
function, in case its zero.

Individual governors are allowed to override this value.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c
drivers/cpuidle/poll_state.c
drivers/cpuidle/sysfs.c
include/linux/cpuidle.h