diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2007-05-08 03:24:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:14:58 -0400 |
commit | 1065d130dddc3241706c50a01ced7b03bcb657be (patch) | |
tree | 86565a17abe3c126c13708207bdca671fbc5bc77 /kernel | |
parent | fca3b747795ae24f9667b6c9a69975f9eb98a2c0 (diff) |
freezer: task->exit_state should be treated as bolean
Except for BUG_ON() checks, we should not use EXIT_XXXX defines outside of
exit/wait paths.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/power/process.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index 0eb5c420e8ed..179529dc3819 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c | |||
@@ -25,10 +25,9 @@ | |||
25 | 25 | ||
26 | static inline int freezeable(struct task_struct * p) | 26 | static inline int freezeable(struct task_struct * p) |
27 | { | 27 | { |
28 | if ((p == current) || | 28 | if ((p == current) || |
29 | (p->flags & PF_NOFREEZE) || | 29 | (p->flags & PF_NOFREEZE) || |
30 | (p->exit_state == EXIT_ZOMBIE) || | 30 | (p->exit_state != 0)) |
31 | (p->exit_state == EXIT_DEAD)) | ||
32 | return 0; | 31 | return 0; |
33 | return 1; | 32 | return 1; |
34 | } | 33 | } |