diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-10-18 06:04:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:19 -0400 |
commit | b842ee578eeb2c10303725e28edca130ede0397c (patch) | |
tree | d78d1f72aff5e45bcc49fe87101264853eb39334 /kernel/power/process.c | |
parent | f059bca1c57f665211dc23de1fb31c1849b65c7b (diff) |
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 'kernel/power/process.c')
-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) | |||
227 | { | 227 | { |
228 | int error; | 228 | int error; |
229 | 229 | ||
230 | printk("Stopping tasks ... "); | 230 | printk("Freezing user space processes ... "); |
231 | error = try_to_freeze_tasks(FREEZER_USER_SPACE); | 231 | error = try_to_freeze_tasks(FREEZER_USER_SPACE); |
232 | if (error) | 232 | if (error) |
233 | return error; | 233 | goto Exit; |
234 | printk("done.\n"); | ||
234 | 235 | ||
236 | printk("Freezing remaining freezable tasks ... "); | ||
235 | error = try_to_freeze_tasks(FREEZER_KERNEL_THREADS); | 237 | error = try_to_freeze_tasks(FREEZER_KERNEL_THREADS); |
236 | if (error) | 238 | if (error) |
237 | return error; | 239 | goto Exit; |
238 | 240 | printk("done."); | |
239 | printk("done.\n"); | 241 | Exit: |
240 | BUG_ON(in_atomic()); | 242 | BUG_ON(in_atomic()); |
241 | return 0; | 243 | printk("\n"); |
244 | return error; | ||
242 | } | 245 | } |
243 | 246 | ||
244 | static void thaw_tasks(int thaw_user_space) | 247 | static void thaw_tasks(int thaw_user_space) |