summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-07-19 01:47:26 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 10:04:42 -0700
commit328616e3b76859f1abdd08a8df1ddbb7bb81f807 (patch)
treec2f5bf6250159b19cff6f000f2f752b8924d6dc6 /kernel/power
parent3ee6dafc677a68e461a7ddafc94a580ebab80735 (diff)
downloadblackbird-op-linux-328616e3b76859f1abdd08a8df1ddbb7bb81f807.tar.gz
blackbird-op-linux-328616e3b76859f1abdd08a8df1ddbb7bb81f807.zip
freezer: run show_state() when freezing times out
To see which tasks are stuck where. Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Oleg Nesterov <oleg@tv-sign.ru> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c
index e0233d8422b9..b850173e7561 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -157,6 +157,7 @@ static unsigned int try_to_freeze_tasks(int freeze_user_space)
freeze_user_space ? "user space processes" :
"kernel threads",
TIMEOUT / HZ, todo);
+ show_state();
read_lock(&tasklist_lock);
do_each_thread(g, p) {
if (freeze_user_space && !is_user_space(p))
OpenPOWER on IntegriCloud