Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280368
b: refs/heads/master
c: 6cd8ded
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed Nov 21, 2011
1 parent e956e13 commit 3f3d67e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 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: a585042f7b933539a0b6bc63650c2d49ffb2e55d
refs/heads/master: 6cd8dedcdd8e8de01391a7cf25f0b2afeb24f8f4
20 changes: 7 additions & 13 deletions trunk/kernel/power/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,34 +170,28 @@ int freeze_kernel_threads(void)
return error;
}

static void thaw_tasks(bool nosig_only)
void thaw_processes(void)
{
struct task_struct *g, *p;

oom_killer_enable();

printk("Restarting tasks ... ");

thaw_workqueues();

read_lock(&tasklist_lock);
do_each_thread(g, p) {
if (!freezable(p))
continue;

if (nosig_only && should_send_signal(p))
continue;

if (cgroup_freezing_or_frozen(p))
continue;

__thaw_task(p);
} while_each_thread(g, p);
read_unlock(&tasklist_lock);
}

void thaw_processes(void)
{
oom_killer_enable();

printk("Restarting tasks ... ");
thaw_workqueues();
thaw_tasks(true);
thaw_tasks(false);
schedule();
printk("done.\n");
}
Expand Down

0 comments on commit 3f3d67e

Please sign in to comment.