9 #include <linux/export.h>
54 bool was_frozen =
false;
62 spin_lock_irq(&freezer_lock);
67 spin_unlock_irq(&freezer_lock);
92 if (lock_task_sighand(p, &flags)) {
94 unlock_task_sighand(p, &flags);
114 if (!freezing(p) || frozen(p)) {
115 spin_unlock_irqrestore(&freezer_lock, flags);
120 fake_signal_wake_up(p);
131 spin_unlock_irqrestore(&freezer_lock, flags);
148 spin_unlock_irqrestore(&freezer_lock, flags);
165 spin_lock_irq(&freezer_lock);
167 spin_unlock_irq(&freezer_lock);
169 return try_to_freeze();