|
@@ -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;
|
|
|
|
-
|
|
|
|
- printk("done.\n");
|
|
|
|
|
|
+ goto Exit;
|
|
|
|
+ printk("done.");
|
|
|
|
+ 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)
|