Skip to content

Commit

Permalink
freezer: be more verbose
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Oct 18, 2007
1 parent f059bca commit b842ee5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions kernel/power/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b842ee5

Please sign in to comment.