PM / suspend: Always use deepest C-state in the "freeze" sleep state
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 4 May 2014 22:51:54 +0000 (00:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 May 2014 23:49:28 +0000 (01:49 +0200)
commita6220fc19afc07fe77cfd16f5b8e568615517091
tree1f79cd9dc6610db3ca394dcd4f61a3b109d1069d
parentbed4d597a0f99b380d24ab3a9da47b62cbf1ad0e
PM / suspend: Always use deepest C-state in the "freeze" sleep state

If freeze_enter() is called, we want to bypass the current cpuidle
governor and always use the deepest available (that is, not disabled)
C-state, because we want to save as much energy as reasonably possible
then and runtime latency constraints don't matter at that point, since
the system is in a sleep state anyway.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Aubrey Li <aubrey.li@linux.intel.com>
drivers/cpuidle/cpuidle.c
include/linux/cpuidle.h
kernel/power/suspend.c