From: Kyungmin Park <[email protected]> Some platform uses freezer cgroup for speicial purpose to schedule out some applications. but after suspend & resume, these processes are thawed and running.
but it's inteneded and don't need to thaw it. To avoid it, does it possible to modify resume code and don't thaw it when resume? does it resonable? Signed-off-by: Kyungmin Park <[email protected]> --- diff --git a/kernel/power/process.c b/kernel/power/process.c index 564f786..6eed7df 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -202,7 +202,9 @@ void thaw_processes(void) for_each_process_thread(g, p) { /* No other threads should have PF_SUSPEND_TASK set */ WARN_ON((p != curr) && (p->flags & PF_SUSPEND_TASK)); - __thaw_task(p); + /* Don't need to thaw when it's already frozen by userspace */ + if (!cgroup_freezing(p)) + __thaw_task(p); } read_unlock(&tasklist_lock); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

