From: Colin Cross Date: Mon, 6 May 2013 23:50:11 +0000 (+0000) Subject: freezer: skip waking up tasks with PF_FREEZER_SKIP set X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~19^2~12^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613f5d13b569859171f0896fbc73ee0bfa811fda;p=pandora-kernel.git 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 Acked-by: Pavel Machek Signed-off-by: Colin Cross Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed