diff options
Diffstat (limited to 'include/linux/freezer.h')
| -rw-r--r-- | include/linux/freezer.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index 043a5cf8b5ba..e70df40d84f6 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | #ifndef FREEZER_H_INCLUDED | 3 | #ifndef FREEZER_H_INCLUDED |
| 4 | #define FREEZER_H_INCLUDED | 4 | #define FREEZER_H_INCLUDED |
| 5 | 5 | ||
| 6 | #include <linux/debug_locks.h> | ||
| 7 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
| 8 | #include <linux/wait.h> | 7 | #include <linux/wait.h> |
| 9 | #include <linux/atomic.h> | 8 | #include <linux/atomic.h> |
| @@ -49,8 +48,6 @@ extern void thaw_kernel_threads(void); | |||
| 49 | 48 | ||
| 50 | static inline bool try_to_freeze(void) | 49 | static inline bool try_to_freeze(void) |
| 51 | { | 50 | { |
| 52 | if (!(current->flags & PF_NOFREEZE)) | ||
| 53 | debug_check_no_locks_held(); | ||
| 54 | might_sleep(); | 51 | might_sleep(); |
| 55 | if (likely(!freezing(current))) | 52 | if (likely(!freezing(current))) |
| 56 | return false; | 53 | return false; |
