diff options
author | Colin Cross <ccross@android.com> | 2013-05-06 23:50:11 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-05-12 14:16:22 +0200 |
commit | 613f5d13b569859171f0896fbc73ee0bfa811fda (patch) | |
tree | 92f3f25db1fe1063624cc0ef69506d2f38a1988a /kernel/Kconfig.preempt | |
parent | 18ad0c6297df1d671ecea83b608cd9e432642a05 (diff) | |
download | linux-613f5d13b569859171f0896fbc73ee0bfa811fda.tar.bz2 |
freezer: skip waking up tasks with PF_FREEZER_SKIP set
Android goes through suspend/resume very often (every few seconds when
on a busy wifi network with the screen off), and a significant portion
of the energy used to go in and out of suspend is spent in the
freezer. If a task has called freezer_do_not_count(), don't bother
waking it up. If it happens to wake up later it will call
freezer_count() and immediately enter the refrigerator.
Combined with patches to convert freezable helpers to use
freezer_do_not_count() and convert common sites where idle userspace
tasks are blocked to use the freezable helpers, this reduces the
time and energy required to suspend and resume.
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/Kconfig.preempt')
0 files changed, 0 insertions, 0 deletions