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)
commitbb8313b603eb8fd52de48a079bfcd72dcab2ef1e
tree909fb13b3c68408b772568d2e1be11fb99d5e2cb
parented61390bff3ad43166a2552651b09ebd95dd1da5
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