PM: wakelock: Don't dump unfrozen task list when aborting try_to_freeze_tasks after...
Arve Hjønnevåg [Wed, 2 Dec 2009 04:54:37 +0000 (20:54 -0800)]
Change-Id: Ib2976e5b97a5ee4ec9abd4d4443584d9257d0941
Signed-off-by: Arve Hjønnevåg <arve@android.com>

kernel/power/process.c

index 8fee8d0..581df78 100644 (file)
@@ -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);