Lines Matching refs:__state
87 * We have two separate sets of flags: task->__state
94 /* Used in tsk->__state: */
104 /* Used in tsk->__state again: */
140 #define task_is_running(task) (READ_ONCE((task)->__state) == TASK_RUNNING)
185 * set_current_state() includes a barrier so that the write of current->__state
208 * accessing p->__state.
210 * Wakeup will do: if (@state & p->__state) p->__state = TASK_RUNNING, that is,
224 WRITE_ONCE(current->__state, (state_value)); \
230 smp_store_mb(current->__state, (state_value)); \
245 WRITE_ONCE(current->__state, (state_value)); \
278 current->saved_state = current->__state; \
280 WRITE_ONCE(current->__state, TASK_RTLOCK_WAIT); \
289 WRITE_ONCE(current->__state, current->saved_state); \
294 #define get_current_state() READ_ONCE(current->__state)
756 unsigned int __state;
1596 return __task_state_index(READ_ONCE(tsk->__state), tsk->exit_state);