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>
Thu, 30 Sep 2010 00:49:07 +0000 (17:49 -0700)
Change-Id: Ib2976e5b97a5ee4ec9abd4d4443584d9257d0941
Signed-off-by: Arve Hjønnevåg <arve@android.com>
kernel/power/process.c

index 48df784fcb7c24163e202f9b785f3f4cb31687c5..cdac5f955b857e5707ef2050667cf6975b01032d 100644 (file)
@@ -119,7 +119,8 @@ static int try_to_freeze_tasks(bool sig_only)
                read_lock(&tasklist_lock);
                do_each_thread(g, p) {
                        task_lock(p);
-                       if (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);