]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: Allow enforcing deepest idle state selection
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Tue, 29 Nov 2016 07:03:04 +0000 (23:03 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 29 Nov 2016 13:02:21 +0000 (14:02 +0100)
commitbd58e4402047405edec9f16822d073171fff2fb6
tree909fb13b3c68408b772568d2e1be11fb99d5e2cb
parent29dbfd0fe451b409e89c3da927b16733bdaaa784
cpuidle: Allow enforcing deepest idle state selection

When idle injection is used to cap power, we need to override the
governor's choice of idle states.

For this reason, make it possible the deepest idle state selection to
be enforced by setting a flag on a given CPU to achieve the maximum
potential power draw reduction.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c
include/linux/cpuidle.h
kernel/sched/idle.c