From: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> 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 <kyungmin.park@xxxxxxxxxxx> --- 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>