Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291852
b: refs/heads/master
c: 6c83b48
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Feb 13, 2012
1 parent 8d290b6 commit 17cd225
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 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: 7c95149b7f1f61201b12c73c4862a41bf2428961
refs/heads/master: 6c83b4818dd65eb17e633b6b629a81da7bed90b3
16 changes: 9 additions & 7 deletions trunk/kernel/power/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ static int try_to_freeze_tasks(bool user_only)
elapsed_csecs / 100, elapsed_csecs % 100,
todo - wq_busy, wq_busy);

read_lock(&tasklist_lock);
do_each_thread(g, p) {
if (!wakeup && !freezer_should_skip(p) &&
p != current && freezing(p) && !frozen(p))
sched_show_task(p);
} while_each_thread(g, p);
read_unlock(&tasklist_lock);
if (!wakeup) {
read_lock(&tasklist_lock);
do_each_thread(g, p) {
if (p != current && !freezer_should_skip(p)
&& freezing(p) && !frozen(p))
sched_show_task(p);
} while_each_thread(g, p);
read_unlock(&tasklist_lock);
}
} else {
printk("(elapsed %d.%02d seconds) ", elapsed_csecs / 100,
elapsed_csecs % 100);
Expand Down

0 comments on commit 17cd225

Please sign in to comment.