]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit097f9af39d218fc06434bef690795bdccd4678f2
tree1f79cd9dc6610db3ca394dcd4f61a3b109d1069d
parent6c4695aaabea22dd078f32021f72e1baf8e9a559
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