diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-19 04:47:30 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-19 04:47:30 -0400 |
commit | 0d4a42f6bd298e826620585e766a154ab460617a (patch) | |
tree | 406d8f7778691d858dbe3e48e4bbb10e99c0a58a /include/linux/freezer.h | |
parent | d62b4892f3d9f7dd2002e5309be10719d6805b0f (diff) | |
parent | a937536b868b8369b98967929045f1df54234323 (diff) |
Merge tag 'v3.9-rc3' into drm-intel-next-queued
Backmerge so that I can merge Imre Deak's coalesced sg entries fixes,
which depend upon the new for_each_sg_page introduce in
commit a321e91b6d73ed011ffceed384c40d2785cf723b
Author: Imre Deak <imre.deak@intel.com>
Date: Wed Feb 27 17:02:56 2013 -0800
lib/scatterlist: add simple page iterator
The merge itself is just two trivial conflicts:
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/freezer.h')
-rw-r--r-- | include/linux/freezer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index e4238ceaa4d6..043a5cf8b5ba 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h | |||
@@ -3,6 +3,7 @@ | |||
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> | ||
6 | #include <linux/sched.h> | 7 | #include <linux/sched.h> |
7 | #include <linux/wait.h> | 8 | #include <linux/wait.h> |
8 | #include <linux/atomic.h> | 9 | #include <linux/atomic.h> |
@@ -13,6 +14,11 @@ extern bool pm_freezing; /* PM freezing in effect */ | |||
13 | extern bool pm_nosig_freezing; /* PM nosig freezing in effect */ | 14 | extern bool pm_nosig_freezing; /* PM nosig freezing in effect */ |
14 | 15 | ||
15 | /* | 16 | /* |
17 | * Timeout for stopping processes | ||
18 | */ | ||
19 | extern unsigned int freeze_timeout_msecs; | ||
20 | |||
21 | /* | ||
16 | * Check if a process has been frozen | 22 | * Check if a process has been frozen |
17 | */ | 23 | */ |
18 | static inline bool frozen(struct task_struct *p) | 24 | static inline bool frozen(struct task_struct *p) |
@@ -43,6 +49,8 @@ extern void thaw_kernel_threads(void); | |||
43 | 49 | ||
44 | static inline bool try_to_freeze(void) | 50 | static inline bool try_to_freeze(void) |
45 | { | 51 | { |
52 | if (!(current->flags & PF_NOFREEZE)) | ||
53 | debug_check_no_locks_held(); | ||
46 | might_sleep(); | 54 | might_sleep(); |
47 | if (likely(!freezing(current))) | 55 | if (likely(!freezing(current))) |
48 | return false; | 56 | return false; |