freezer.c (5ece3eae4cdb968c269e0bc7e2c0e2b223552025) | freezer.c (37ad8aca94a1da2112a7c56151390914e80d1113) |
---|---|
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> --- 79 unchanged lines hidden (view full) --- 88 return was_frozen; 89} 90EXPORT_SYMBOL(__refrigerator); 91 92static void fake_signal_wake_up(struct task_struct *p) 93{ 94 unsigned long flags; 95 | 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> --- 79 unchanged lines hidden (view full) --- 88 return was_frozen; 89} 90EXPORT_SYMBOL(__refrigerator); 91 92static void fake_signal_wake_up(struct task_struct *p) 93{ 94 unsigned long flags; 95 |
96 spin_lock_irqsave(&p->sighand->siglock, flags); 97 signal_wake_up(p, 0); 98 spin_unlock_irqrestore(&p->sighand->siglock, flags); | 96 if (lock_task_sighand(p, &flags)) { 97 signal_wake_up(p, 0); 98 unlock_task_sighand(p, &flags); 99 } |
99} 100 101/** 102 * freeze_task - send a freeze request to given task 103 * @p: task to send the request to 104 * @sig_only: if set, the request will only be sent if the task has the 105 * PF_FREEZER_NOSIG flag unset 106 * Return value: 'false', if @sig_only is set and the task has --- 82 unchanged lines hidden --- | 100} 101 102/** 103 * freeze_task - send a freeze request to given task 104 * @p: task to send the request to 105 * @sig_only: if set, the request will only be sent if the task has the 106 * PF_FREEZER_NOSIG flag unset 107 * Return value: 'false', if @sig_only is set and the task has --- 82 unchanged lines hidden --- |