Lines Matching +full:wakeup +full:- +full:delay +full:- +full:ms
1 // SPDX-License-Identifier: GPL-2.0
3 * drivers/power/process.c - Functions for starting/stopping processes on
17 #include <linux/delay.h>
38 bool wakeup = false; in try_to_freeze_tasks() local
70 wakeup = true; in try_to_freeze_tasks()
77 * 1 ms sleep followed by exponential backoff until 8 ms. in try_to_freeze_tasks()
91 wakeup ? "aborted" : "failed", in try_to_freeze_tasks()
93 todo - wq_busy, wq_busy); in try_to_freeze_tasks()
98 if (!wakeup || pm_debug_messages_on) { in try_to_freeze_tasks()
111 return todo ? -EBUSY : 0; in try_to_freeze_tasks()
115 * freeze_processes - Signal user space processes to enter the refrigerator.
119 * On success, returns 0. On failure, -errno and system is fully thawed.
130 current->flags |= PF_SUSPEND_TASK; in freeze_processes()
150 error = -EBUSY; in freeze_processes()
158 * freeze_kernel_threads - Make freezable kernel threads go to the refrigerator.
160 * On success, returns 0. On failure, -errno and only the kernel threads are
200 WARN_ON((p != curr) && (p->flags & PF_SUSPEND_TASK)); in thaw_processes()
205 WARN_ON(!(curr->flags & PF_SUSPEND_TASK)); in thaw_processes()
206 curr->flags &= ~PF_SUSPEND_TASK; in thaw_processes()
226 if (p->flags & PF_KTHREAD) in thaw_kernel_threads()