summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorMatt Helsley <matthltc@us.ibm.com>2008-10-19 05:27:22 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 17:52:34 +0200
commit5a06915c6df9b89cda5ddb3f8cce5f9a6be534d2 (patch)
tree9c2cd3c928e1e29e34dcc90ea45deab12653c111 /kernel/power
parentcontainer freezer: implement freezer cgroup subsystem (diff)
downloadlinux-5a06915c6df9b89cda5ddb3f8cce5f9a6be534d2.tar.xz
linux-5a06915c6df9b89cda5ddb3f8cce5f9a6be534d2.zip
container freezer: skip frozen cgroups during power management resume
When a system is resumed after a suspend, it will also unfreeze frozen cgroups. This patchs modifies the resume sequence to skip the tasks which are part of a frozen control group. Signed-off-by: Cedric Le Goater <clg@fr.ibm.com> Signed-off-by: Matt Helsley <matthltc@us.ibm.com> Acked-by: Serge E. Hallyn <serue@us.ibm.com> Tested-by: Matt Helsley <matthltc@us.ibm.com> Acked-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c
index 444cea80fde8..ca634019497a 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -135,6 +135,9 @@ static void thaw_tasks(bool nosig_only)
if (nosig_only && should_send_signal(p))
continue;
+ if (cgroup_frozen(p))
+ continue;
+
thaw_process(p);
} while_each_thread(g, p);
read_unlock(&tasklist_lock);