PM: wakelock: Don't dump unfrozen task list when aborting try_to_freeze_tasks after...
authorArve Hjønnevåg <arve@android.com>
Wed, 2 Dec 2009 04:54:37 +0000 (20:54 -0800)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:08:43 +0000 (09:08 -0700)
Change-Id: Ib2976e5b97a5ee4ec9abd4d4443584d9257d0941
Signed-off-by: Arve Hjønnevåg <arve@android.com>
kernel/power/process.c

index be2caaae29441bc63fbf6d6ece55d2bc1b80ba6f..31338cdeafc4749766567bbd41546d3dd885dd96 100644 (file)
@@ -130,7 +130,8 @@ static int try_to_freeze_tasks(bool sig_only)
                read_lock(&tasklist_lock);
                do_each_thread(g, p) {
                        task_lock(p);
-                       if (!wakeup && freezing(p) && !freezer_should_skip(p))
+                       if (freezing(p) && !freezer_should_skip(p) &&
+                               elapsed_csecs > 100)
                                sched_show_task(p);
                        cancel_freezing(p);
                        task_unlock(p);