diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-07-18 06:20:23 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-07-18 06:20:23 -0400 |
| commit | cd569ef5d6ff9f43e9504f1ffc7fdbe356518149 (patch) | |
| tree | 9a4ab5e600fd09e991aa1fbb69adb1c7950898a4 /include/linux/freezer.h | |
| parent | 6879827f4e08da219c99b91e4e1d793a924103e3 (diff) | |
| parent | 5b664cb235e97afbf34db9c4d77f08ebd725335e (diff) | |
Merge branch 'linus' into x86/urgent
Diffstat (limited to 'include/linux/freezer.h')
| -rw-r--r-- | include/linux/freezer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index 08934995c7ab..deddeedf3257 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h | |||
| @@ -128,6 +128,15 @@ static inline void set_freezable(void) | |||
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | /* | 130 | /* |
| 131 | * Tell the freezer that the current task should be frozen by it and that it | ||
| 132 | * should send a fake signal to the task to freeze it. | ||
| 133 | */ | ||
| 134 | static inline void set_freezable_with_signal(void) | ||
| 135 | { | ||
| 136 | current->flags &= ~(PF_NOFREEZE | PF_FREEZER_NOSIG); | ||
| 137 | } | ||
| 138 | |||
| 139 | /* | ||
| 131 | * Freezer-friendly wrappers around wait_event_interruptible() and | 140 | * Freezer-friendly wrappers around wait_event_interruptible() and |
| 132 | * wait_event_interruptible_timeout(), originally defined in <linux/wait.h> | 141 | * wait_event_interruptible_timeout(), originally defined in <linux/wait.h> |
| 133 | */ | 142 | */ |
| @@ -174,6 +183,7 @@ static inline void freezer_do_not_count(void) {} | |||
| 174 | static inline void freezer_count(void) {} | 183 | static inline void freezer_count(void) {} |
| 175 | static inline int freezer_should_skip(struct task_struct *p) { return 0; } | 184 | static inline int freezer_should_skip(struct task_struct *p) { return 0; } |
| 176 | static inline void set_freezable(void) {} | 185 | static inline void set_freezable(void) {} |
| 186 | static inline void set_freezable_with_signal(void) {} | ||
| 177 | 187 | ||
| 178 | #define wait_event_freezable(wq, condition) \ | 188 | #define wait_event_freezable(wq, condition) \ |
| 179 | wait_event_interruptible(wq, condition) | 189 | wait_event_interruptible(wq, condition) |
