diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/freezer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index 5b31e21c485f..d3c038ec9a88 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h | |||
| @@ -212,6 +212,16 @@ static inline bool freezer_should_skip(struct task_struct *p) | |||
| 212 | __retval; \ | 212 | __retval; \ |
| 213 | }) | 213 | }) |
| 214 | 214 | ||
| 215 | /* DO NOT ADD ANY NEW CALLERS OF THIS FUNCTION */ | ||
| 216 | #define wait_event_freezekillable_unsafe(wq, condition) \ | ||
| 217 | ({ \ | ||
| 218 | int __retval; \ | ||
| 219 | freezer_do_not_count(); \ | ||
| 220 | __retval = wait_event_killable(wq, (condition)); \ | ||
| 221 | freezer_count_unsafe(); \ | ||
| 222 | __retval; \ | ||
| 223 | }) | ||
| 224 | |||
| 215 | #define wait_event_freezable(wq, condition) \ | 225 | #define wait_event_freezable(wq, condition) \ |
| 216 | ({ \ | 226 | ({ \ |
| 217 | int __retval; \ | 227 | int __retval; \ |
| @@ -277,6 +287,9 @@ static inline void set_freezable(void) {} | |||
| 277 | #define wait_event_freezekillable(wq, condition) \ | 287 | #define wait_event_freezekillable(wq, condition) \ |
| 278 | wait_event_killable(wq, condition) | 288 | wait_event_killable(wq, condition) |
| 279 | 289 | ||
| 290 | #define wait_event_freezekillable_unsafe(wq, condition) \ | ||
| 291 | wait_event_killable(wq, condition) | ||
| 292 | |||
| 280 | #endif /* !CONFIG_FREEZER */ | 293 | #endif /* !CONFIG_FREEZER */ |
| 281 | 294 | ||
| 282 | #endif /* FREEZER_H_INCLUDED */ | 295 | #endif /* FREEZER_H_INCLUDED */ |
