From: Matt Helsley Date: Sun, 19 Oct 2008 03:27:22 +0000 (-0700) Subject: container freezer: skip frozen cgroups during power management resume X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a06915c6df9b89cda5ddb3f8cce5f9a6be534d2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Matt Helsley Acked-by: Serge E. Hallyn Tested-by: Matt Helsley Acked-by: Rafael J. Wysocki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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);