diff options
author | Gautham R Shenoy <ego@in.ibm.com> | 2007-05-23 16:57:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-23 23:14:11 -0400 |
commit | 88f18ba028b5939bb6f77bd690e5ad8d01bb24cc (patch) | |
tree | eea3f79f5098f7b45723f842208b44f860f0fb71 /include/linux/freezer.h | |
parent | 5fcc57f2d5d558056668159f9153bf21d2c53d16 (diff) |
freezer: move frozen_process() to kernel/power/process.c
Other than refrigerator, no one else calls frozen_process(). So move it from
include/linux/freezer.h to kernel/power/process.c.
Also, since a task can be marked as frozen by itself, we don't need to pass
the (struct task_struct *p) parameter to frozen_process().
Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/freezer.h')
-rw-r--r-- | include/linux/freezer.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index 1045ee9c0bb4..4631086f5060 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h | |||
@@ -58,18 +58,6 @@ static inline int thaw_process(struct task_struct *p) | |||
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | 60 | ||
61 | /* | ||
62 | * freezing is complete, mark process as frozen | ||
63 | */ | ||
64 | static inline void frozen_process(struct task_struct *p) | ||
65 | { | ||
66 | if (!unlikely(p->flags & PF_NOFREEZE)) { | ||
67 | p->flags |= PF_FROZEN; | ||
68 | wmb(); | ||
69 | } | ||
70 | clear_tsk_thread_flag(p, TIF_FREEZE); | ||
71 | } | ||
72 | |||
73 | extern void refrigerator(void); | 61 | extern void refrigerator(void); |
74 | extern int freeze_processes(void); | 62 | extern int freeze_processes(void); |
75 | extern void thaw_processes(void); | 63 | extern void thaw_processes(void); |
@@ -132,7 +120,6 @@ static inline int frozen(struct task_struct *p) { return 0; } | |||
132 | static inline int freezing(struct task_struct *p) { return 0; } | 120 | static inline int freezing(struct task_struct *p) { return 0; } |
133 | static inline void freeze(struct task_struct *p) { BUG(); } | 121 | static inline void freeze(struct task_struct *p) { BUG(); } |
134 | static inline int thaw_process(struct task_struct *p) { return 1; } | 122 | static inline int thaw_process(struct task_struct *p) { return 1; } |
135 | static inline void frozen_process(struct task_struct *p) { BUG(); } | ||
136 | 123 | ||
137 | static inline void refrigerator(void) {} | 124 | static inline void refrigerator(void) {} |
138 | static inline int freeze_processes(void) { BUG(); return 0; } | 125 | static inline int freeze_processes(void) { BUG(); return 0; } |