Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71113
b: refs/heads/master
c: b842ee5
h: refs/heads/master
i:
  71111: e273976
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Oct 18, 2007
1 parent e1c62d3 commit 6daf578
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f059bca1c57f665211dc23de1fb31c1849b65c7b
refs/heads/master: b842ee578eeb2c10303725e28edca130ede0397c
15 changes: 9 additions & 6 deletions trunk/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 6daf578

Please sign in to comment.