freezer: task->exit_state should be treated as bolean
Subsystems (2)
PATCH 1/1 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 <[email protected]>
kernel/power/process.c renamed from kernel/power/process.c~ +2 -3
@@ -25,10 +25,9 @@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 ; }