Lines Matching refs:current
12 #include <asm/current.h>
165 current->task_state_change = _THIS_IP_; \
171 current->task_state_change = _THIS_IP_; \
176 current->saved_state_change = current->task_state_change;\
177 current->task_state_change = _THIS_IP_; \
182 current->task_state_change = current->saved_state_change;\
193 * set_current_state() includes a barrier so that the write of current->__state
232 WRITE_ONCE(current->__state, (state_value)); \
238 smp_store_mb(current->__state, (state_value)); \
251 raw_spin_lock_irqsave(¤t->pi_lock, flags); \
253 WRITE_ONCE(current->__state, (state_value)); \
254 raw_spin_unlock_irqrestore(¤t->pi_lock, flags); \
285 raw_spin_lock(¤t->pi_lock); \
286 current->saved_state = current->__state; \
288 WRITE_ONCE(current->__state, TASK_RTLOCK_WAIT); \
289 raw_spin_unlock(¤t->pi_lock); \
295 raw_spin_lock(¤t->pi_lock); \
297 WRITE_ONCE(current->__state, current->saved_state); \
298 current->saved_state = TASK_RUNNING; \
299 raw_spin_unlock(¤t->pi_lock); \
302 #define get_current_state() READ_ONCE(current->__state)
1002 /* Unserialized, strictly 'current' */
1014 * guarantees all stores of 'current' are visible before
1396 * This pointer is only modified for current in syscall and
1400 * - current->numa_group from everywhere
1416 * during the current scan window. When the scan completes, the counts
1510 /* Index of current stored address in ret_stack: */
1571 /* Cache for current->cgroups->memcg->objcg lookups: */
1807 #define clear_used_math() clear_stopped_child_used_math(current)
1808 #define set_used_math() set_stopped_child_used_math(current)
1813 #define conditional_used_math(condition) conditional_stopped_child_used_math(condition, current)
1816 do { (child)->flags &= ~PF_USED_MATH, (child)->flags |= current->flags & PF_USED_MATH; } while (0)
1820 #define used_math() tsk_used_math(current)
1825 return (current->flags & PF_NO_SETAFFINITY) &&
1826 (current->nr_cpus_allowed == 1);
1886 current->flags &= ~flags;
1887 current->flags |= orig_flags & flags;
2268 WARN_ON_ONCE(p != current);
2283 WARN_ON_ONCE(p != current);
2384 swap(current->alloc_tag, tag);
2391 WARN(current->alloc_tag != tag, "current->alloc_tag was changed:\n");
2393 current->alloc_tag = old;