diff options
Diffstat (limited to 'kernel/power/process.c')
-rw-r--r-- | kernel/power/process.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index 77274c9ba2f1..eeca00311f39 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c | |||
@@ -188,3 +188,22 @@ void thaw_processes(void) | |||
188 | printk("done.\n"); | 188 | printk("done.\n"); |
189 | } | 189 | } |
190 | 190 | ||
191 | void thaw_kernel_threads(void) | ||
192 | { | ||
193 | struct task_struct *g, *p; | ||
194 | |||
195 | pm_nosig_freezing = false; | ||
196 | printk("Restarting kernel threads ... "); | ||
197 | |||
198 | thaw_workqueues(); | ||
199 | |||
200 | read_lock(&tasklist_lock); | ||
201 | do_each_thread(g, p) { | ||
202 | if (p->flags & (PF_KTHREAD | PF_WQ_WORKER)) | ||
203 | __thaw_task(p); | ||
204 | } while_each_thread(g, p); | ||
205 | read_unlock(&tasklist_lock); | ||
206 | |||
207 | schedule(); | ||
208 | printk("done.\n"); | ||
209 | } | ||