aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/freezer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/freezer.h')
-rw-r--r--include/linux/freezer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/freezer.h b/include/linux/freezer.h
index c9435252e8e4..1045ee9c0bb4 100644
--- a/include/linux/freezer.h
+++ b/include/linux/freezer.h
@@ -63,8 +63,10 @@ static inline int thaw_process(struct task_struct *p)
63 */ 63 */
64static inline void frozen_process(struct task_struct *p) 64static inline void frozen_process(struct task_struct *p)
65{ 65{
66 p->flags |= PF_FROZEN; 66 if (!unlikely(p->flags & PF_NOFREEZE)) {
67 wmb(); 67 p->flags |= PF_FROZEN;
68 wmb();
69 }
68 clear_tsk_thread_flag(p, TIF_FREEZE); 70 clear_tsk_thread_flag(p, TIF_FREEZE);
69} 71}
70 72