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>
This commit is contained in:
Rafael J. Wysocki 2007-10-18 03:04:48 -07:00 committed by Linus Torvalds
parent f059bca1c5
commit b842ee578e
1 changed files with 9 additions and 6 deletions

View File

@ -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)