summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2009-12-01 20:54:37 -0800
committerColin Cross <ccross@android.com>2012-02-14 11:25:53 -0800
commit6e4b6932f7f1d7a9ce5b537b545fa924b83f21b6 (patch)
tree4e325e0a50ec10e8220012d21fb70f153d51c11b /kernel
parentdce3610a81ec6ef81ee90b2640d2dac7efcc0a15 (diff)
PM: wakelock: Don't dump unfrozen task list when aborting try_to_freeze_tasks after less than one second
Change-Id: Ib2976e5b97a5ee4ec9abd4d4443584d9257d0941 Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c
index 8fee8d00e3a..581df782512 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -118,7 +118,8 @@ static int try_to_freeze_tasks(bool user_only)
read_lock(&tasklist_lock);
do_each_thread(g, p) {
if (!wakeup && !freezer_should_skip(p) &&
- p != current && freezing(p) && !frozen(p))
+ p != current && freezing(p) && !frozen(p) &&
+ elapsed_csecs > 100)
sched_show_task(p);
} while_each_thread(g, p);
read_unlock(&tasklist_lock);