Lines Matching defs:state
34 * and tests whether @p needs to enter and stay in frozen state. Can be
36 * target tasks see the updated state.
64 unsigned int state = get_current_state();
69 WARN_ON_ONCE(state && !(state & TASK_NORMAL));
110 unsigned int state = READ_ONCE(p->__state);
118 if (!(state & (TASK_FREEZABLE | __TASK_STOPPED | __TASK_TRACED)))
125 if (state & TASK_FREEZABLE)
126 WARN_ON_ONCE(!(state & TASK_NORMAL));
132 if (!(state & __TASK_FREEZABLE_UNSAFE))
180 * here. For tasks which were TASK_NORMAL | TASK_FREEZABLE, their initial state
182 * Returns 1 if the task state was restored.
186 unsigned int state = p->saved_state;
188 if (state != TASK_RUNNING) {
189 WRITE_ONCE(p->__state, state);