]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/power/process.c
freezer: task->exit_state should be treated as bolean
[linux-2.6-omap-h63xx.git] / kernel / power / process.c
index 0eb5c420e8edfdba4fe04adea60608e0be6357be..179529dc38190f8860f02ac4cc2f3def1df88895 100644 (file)
 
 static inline int freezeable(struct task_struct * p)
 {
-       if ((p == current) || 
+       if ((p == current) ||
            (p->flags & PF_NOFREEZE) ||
-           (p->exit_state == EXIT_ZOMBIE) ||
-           (p->exit_state == EXIT_DEAD))
+           (p->exit_state != 0))
                return 0;
        return 1;
 }