diff options
Diffstat (limited to 'kernel/power/process.c')
-rw-r--r-- | kernel/power/process.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index 78672d324a6e..50f25cb370c6 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c | |||
@@ -20,8 +20,9 @@ | |||
20 | #include <linux/workqueue.h> | 20 | #include <linux/workqueue.h> |
21 | #include <linux/kmod.h> | 21 | #include <linux/kmod.h> |
22 | #include <trace/events/power.h> | 22 | #include <trace/events/power.h> |
23 | #include <linux/cpuset.h> | ||
23 | 24 | ||
24 | /* | 25 | /* |
25 | * Timeout for stopping processes | 26 | * Timeout for stopping processes |
26 | */ | 27 | */ |
27 | unsigned int __read_mostly freeze_timeout_msecs = 20 * MSEC_PER_SEC; | 28 | unsigned int __read_mostly freeze_timeout_msecs = 20 * MSEC_PER_SEC; |
@@ -202,6 +203,8 @@ void thaw_processes(void) | |||
202 | __usermodehelper_set_disable_depth(UMH_FREEZING); | 203 | __usermodehelper_set_disable_depth(UMH_FREEZING); |
203 | thaw_workqueues(); | 204 | thaw_workqueues(); |
204 | 205 | ||
206 | cpuset_wait_for_hotplug(); | ||
207 | |||
205 | read_lock(&tasklist_lock); | 208 | read_lock(&tasklist_lock); |
206 | for_each_process_thread(g, p) { | 209 | for_each_process_thread(g, p) { |
207 | /* No other threads should have PF_SUSPEND_TASK set */ | 210 | /* No other threads should have PF_SUSPEND_TASK set */ |