diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-10-18 12:04:48 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 23:37:19 +0200 |
commit | b842ee578eeb2c10303725e28edca130ede0397c (patch) | |
tree | d78d1f72aff5e45bcc49fe87101264853eb39334 /kernel/power/process.c | |
parent | pm_trace displays the wrong time from the RTC (diff) | |
download | linux-b842ee578eeb2c10303725e28edca130ede0397c.tar.xz linux-b842ee578eeb2c10303725e28edca130ede0397c.zip |
freezer: be more verbose
Increase the freezer's verbosity a bit, so that it's easier to read problem
reports related to it.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Nigel Cunningham <nigel@nigel.suspend2.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | kernel/power/process.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index 4da125ee533d..3d98d7f99b14 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -227,18 +227,21 @@ int freeze_processes(void) { int error; - printk("Stopping tasks ... "); + printk("Freezing user space processes ... "); error = try_to_freeze_tasks(FREEZER_USER_SPACE); if (error) - return error; + goto Exit; + printk("done.\n"); + printk("Freezing remaining freezable tasks ... "); error = try_to_freeze_tasks(FREEZER_KERNEL_THREADS); if (error) - return error; - - printk("done.\n"); + goto Exit; + printk("done."); + Exit: BUG_ON(in_atomic()); - return 0; + printk("\n"); + return error; } static void thaw_tasks(int thaw_user_space) |