freezer.c (458ce2910aa83d8a2cafb489d727f7da839e73c6) freezer.c (37f08be11be9a7d9351fb1b9b408259519a126f3)
1/*
2 * kernel/freezer.c - Function to freeze a process
3 *
4 * Originally from kernel/power/process.c
5 */
6
7#include <linux/interrupt.h>
8#include <linux/suspend.h>

--- 85 unchanged lines hidden (view full) ---

94 unlock_task_sighand(p, &flags);
95 }
96}
97
98/**
99 * freeze_task - send a freeze request to given task
100 * @p: task to send the request to
101 *
1/*
2 * kernel/freezer.c - Function to freeze a process
3 *
4 * Originally from kernel/power/process.c
5 */
6
7#include <linux/interrupt.h>
8#include <linux/suspend.h>

--- 85 unchanged lines hidden (view full) ---

94 unlock_task_sighand(p, &flags);
95 }
96}
97
98/**
99 * freeze_task - send a freeze request to given task
100 * @p: task to send the request to
101 *
102 * If @p is freezing, the freeze request is sent by setting %TIF_FREEZE
103 * flag and either sending a fake signal to it or waking it up, depending
104 * on whether it has %PF_FREEZER_NOSIG set.
102 * If @p is freezing, the freeze request is sent either by sending a fake
103 * signal (if it's not a kernel thread) or waking it up (if it's a kernel
104 * thread).
105 *
106 * RETURNS:
107 * %false, if @p is not freezing or already frozen; %true, otherwise
108 */
109bool freeze_task(struct task_struct *p)
110{
111 unsigned long flags;
112

--- 59 unchanged lines hidden ---
105 *
106 * RETURNS:
107 * %false, if @p is not freezing or already frozen; %true, otherwise
108 */
109bool freeze_task(struct task_struct *p)
110{
111 unsigned long flags;
112

--- 59 unchanged lines hidden ---