Commit b842ee57 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Linus Torvalds

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: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarNigel Cunningham <nigel@nigel.suspend2.net>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f059bca1
...@@ -227,18 +227,21 @@ int freeze_processes(void) ...@@ -227,18 +227,21 @@ int freeze_processes(void)
{ {
int error; int error;
printk("Stopping tasks ... "); printk("Freezing user space processes ... ");
error = try_to_freeze_tasks(FREEZER_USER_SPACE); error = try_to_freeze_tasks(FREEZER_USER_SPACE);
if (error) if (error)
return error; goto Exit;
printk("done.\n");
printk("Freezing remaining freezable tasks ... ");
error = try_to_freeze_tasks(FREEZER_KERNEL_THREADS); error = try_to_freeze_tasks(FREEZER_KERNEL_THREADS);
if (error) if (error)
return error; goto Exit;
printk("done.");
printk("done.\n"); Exit:
BUG_ON(in_atomic()); BUG_ON(in_atomic());
return 0; printk("\n");
return error;
} }
static void thaw_tasks(int thaw_user_space) static void thaw_tasks(int thaw_user_space)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment