Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4254
b: refs/heads/master
c: 1322ad4
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Jul 8, 2005
1 parent 9adeaf9 commit 6a72098
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 47b724f3fe372a3d9acf0bb560fb5c93c9867880
refs/heads/master: 1322ad41513f8f9196801f53cc0851df056f3478
6 changes: 2 additions & 4 deletions trunk/kernel/power/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,17 @@ int freeze_processes(void)
int todo;
unsigned long start_time;
struct task_struct *g, *p;
unsigned long flags;

printk( "Stopping tasks: " );
start_time = jiffies;
do {
todo = 0;
read_lock(&tasklist_lock);
do_each_thread(g, p) {
unsigned long flags;
if (!freezeable(p))
continue;
if ((frozen(p)) ||
(p->state == TASK_TRACED) ||
(p->state == TASK_STOPPED))
if (frozen(p))
continue;

freeze(p);
Expand Down

0 comments on commit 6a72098

Please sign in to comment.