diff options
Diffstat (limited to 'include/linux/freezer.h')
| -rw-r--r-- | include/linux/freezer.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index 2d38b1a74662..c8e02de737f6 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h | |||
| @@ -25,7 +25,7 @@ static inline int freezing(struct task_struct *p) | |||
| 25 | /* | 25 | /* |
| 26 | * Request that a process be frozen | 26 | * Request that a process be frozen |
| 27 | */ | 27 | */ |
| 28 | static inline void freeze(struct task_struct *p) | 28 | static inline void set_freeze_flag(struct task_struct *p) |
| 29 | { | 29 | { |
| 30 | set_tsk_thread_flag(p, TIF_FREEZE); | 30 | set_tsk_thread_flag(p, TIF_FREEZE); |
| 31 | } | 31 | } |
| @@ -33,7 +33,7 @@ static inline void freeze(struct task_struct *p) | |||
| 33 | /* | 33 | /* |
| 34 | * Sometimes we may need to cancel the previous 'freeze' request | 34 | * Sometimes we may need to cancel the previous 'freeze' request |
| 35 | */ | 35 | */ |
| 36 | static inline void do_not_freeze(struct task_struct *p) | 36 | static inline void clear_freeze_flag(struct task_struct *p) |
| 37 | { | 37 | { |
| 38 | clear_tsk_thread_flag(p, TIF_FREEZE); | 38 | clear_tsk_thread_flag(p, TIF_FREEZE); |
| 39 | } | 39 | } |
| @@ -56,7 +56,7 @@ static inline int thaw_process(struct task_struct *p) | |||
| 56 | wake_up_process(p); | 56 | wake_up_process(p); |
| 57 | return 1; | 57 | return 1; |
| 58 | } | 58 | } |
| 59 | clear_tsk_thread_flag(p, TIF_FREEZE); | 59 | clear_freeze_flag(p); |
| 60 | task_unlock(p); | 60 | task_unlock(p); |
| 61 | return 0; | 61 | return 0; |
| 62 | } | 62 | } |
| @@ -129,7 +129,8 @@ static inline void set_freezable(void) | |||
| 129 | #else | 129 | #else |
| 130 | static inline int frozen(struct task_struct *p) { return 0; } | 130 | static inline int frozen(struct task_struct *p) { return 0; } |
| 131 | static inline int freezing(struct task_struct *p) { return 0; } | 131 | static inline int freezing(struct task_struct *p) { return 0; } |
| 132 | static inline void freeze(struct task_struct *p) { BUG(); } | 132 | static inline void set_freeze_flag(struct task_struct *p) {} |
| 133 | static inline void clear_freeze_flag(struct task_struct *p) {} | ||
| 133 | static inline int thaw_process(struct task_struct *p) { return 1; } | 134 | static inline int thaw_process(struct task_struct *p) { return 1; } |
| 134 | 135 | ||
| 135 | static inline void refrigerator(void) {} | 136 | static inline void refrigerator(void) {} |
