Lines Matching refs:kernel
7 kernel threads are controlled during hibernation or system-wide suspend (on some
14 PF_NOFREEZE unset (all user space processes and some kernel threads) are
20 freeze_processes() (defined in kernel/power/process.c) is called. A system-wide
24 fake signal to all user space processes, and wakes up all the kernel threads.
26 results in a call to __refrigerator() (defined in kernel/freezer.c), which sets
30 to as 'the freezer' (these functions are defined in kernel/power/process.c,
31 kernel/freezer.c & include/linux/freezer.h). User space processes are generally
32 frozen before kernel threads.
39 signal-handling code, but the freezable kernel threads need to call it
43 calling try_to_freeze(). The main loop of a freezable kernel thread may look
56 If a freezable kernel thread fails to call try_to_freeze() after the freezer has
58 hibernation operation will be cancelled. For this reason, freezable kernel
75 - freezes all tasks (including kernel threads) because we can't freeze
76 kernel threads without freezing userspace tasks
79 - thaws only kernel threads; this is particularly useful if we need to do
80 anything special in between thawing of kernel threads and thawing of
84 - thaws all tasks (including kernel threads) because we can't thaw userspace
85 tasks without thawing kernel threads
88 III. Which kernel threads are freezable?
90 Kernel threads are not freezable by default. However, a kernel thread may clear
110 The majority of these are user space processes, but if any of the kernel threads
122 3. The third reason is to prevent user space processes and some kernel threads
131 "RJW:> Why we freeze tasks at all or why we freeze kernel threads?
141 So in practice, the 'at all' may become a 'why freeze kernel threads?' and
144 Still, there are kernel threads that may want to be freezable. For example, if
145 a kernel thread that belongs to a device driver accesses the device directly, it
147 to access it at that time. However, if the kernel thread is freezable, it will
167 First of all, the freezing of kernel threads may be tricky if they depend one
168 on another. For example, if kernel thread A waits for a completion (in the
169 TASK_UNINTERRUPTIBLE state) that needs to be done by freezable kernel thread B
171 may be undesirable. That's why kernel threads are not freezable by default.
178 now doing the sorts of things that kernel threads do
210 (kernel/cpu.c) for an example.
229 all user space processes or all freezable kernel threads, in unit of millisecond.