diff options
author | Arve Hjønnevåg <arve@android.com> | 2009-12-01 20:54:37 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:08:43 -0700 |
commit | 01e13543e486f1007ba5656e30c5f0932f4187b0 (patch) | |
tree | e7a5c2fd6659e006bbd833573d998b8ed48d1080 /kernel | |
parent | 677f10402f85bfab6b540f6e3f64cca7f7cb79a4 (diff) | |
download | kernel_samsung_espresso10-01e13543e486f1007ba5656e30c5f0932f4187b0.zip kernel_samsung_espresso10-01e13543e486f1007ba5656e30c5f0932f4187b0.tar.gz kernel_samsung_espresso10-01e13543e486f1007ba5656e30c5f0932f4187b0.tar.bz2 |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index be2caaa..31338cd 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -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); |