summaryrefslogtreecommitdiffstats
path: root/kernel/power/process.c
diff options
context:
space:
mode:
authorXiaotian Feng <dfeng@redhat.com>2010-03-10 22:59:13 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2010-03-26 23:51:13 +0100
commit4f598458ea4450f53e8ed929ee4e66b3404a7286 (patch)
tree7947a560c241edc3320436406b13cdbb464bb202 /kernel/power/process.c
parente1ee65d85904c5dd4b9cea1b15d5e85e20eae8a1 (diff)
downloadlinux-4f598458ea4450f53e8ed929ee4e66b3404a7286.tar.gz
linux-4f598458ea4450f53e8ed929ee4e66b3404a7286.tar.bz2
linux-4f598458ea4450f53e8ed929ee4e66b3404a7286.zip
Freezer: Only show the state of tasks refusing to freeze
show_state will dump all tasks state, so if freezer failed to freeze any task, kernel will dump all tasks state and flood the dmesg log. This patch makes freezer only show state of tasks refusing to freeze. Signed-off-by: Xiaotian Feng <dfeng@redhat.com> Acked-by: Pavel Machek <pavel@ucw.cz> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/power/process.c')
-rw-r--r--kernel/power/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c
index 5ade1bdcf366..a0480cd4daaf 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -88,12 +88,11 @@ static int try_to_freeze_tasks(bool sig_only)
printk(KERN_ERR "Freezing of tasks failed after %d.%02d seconds "
"(%d tasks refusing to freeze):\n",
elapsed_csecs / 100, elapsed_csecs % 100, todo);
- show_state();
read_lock(&tasklist_lock);
do_each_thread(g, p) {
task_lock(p);
if (freezing(p) && !freezer_should_skip(p))
- printk(KERN_ERR " %s\n", p->comm);
+ sched_show_task(p);
cancel_freezing(p);
task_unlock(p);
} while_each_thread(g, p);