Lines Matching refs:current

12 #include <asm/current.h>

135 current->task_state_change = _THIS_IP_; \
136 current->state = (state_value); \
142 current->task_state_change = _THIS_IP_; \
143 smp_store_mb(current->state, (state_value)); \
150 raw_spin_lock_irqsave(&current->pi_lock, flags); \
151 current->task_state_change = _THIS_IP_; \
152 current->state = (state_value); \
153 raw_spin_unlock_irqrestore(&current->pi_lock, flags); \
157 * set_current_state() includes a barrier so that the write of current->state
193 #define __set_current_state(state_value) current->state = (state_value)
195 #define set_current_state(state_value) smp_store_mb(current->state, (state_value))
206 raw_spin_lock_irqsave(&current->pi_lock, flags); \
207 current->state = (state_value); \
208 raw_spin_unlock_irqrestore(&current->pi_lock, flags); \
558 * 'sum' represents how runnable a task has been within current
571 * various CPUs in the current window
916 /* Unserialized, strictly 'current' */
928 * guarantees all stores of 'current' are visible before
1266 * This pointer is only modified for current in syscall and
1270 * - current->numa_group from everywhere
1286 * during the current scan window. When the scan completes, the counts
1373 /* Index of current stored address in ret_stack: */
1522 * current.
1717 #define clear_used_math() clear_stopped_child_used_math(current)
1718 #define set_used_math() set_stopped_child_used_math(current)
1725 #define conditional_used_math(condition) conditional_stopped_child_used_math(condition, current)
1729 (child)->flags &= ~PF_USED_MATH, (child)->flags |= current->flags & PF_USED_MATH; \
1734 #define used_math() tsk_used_math(current)
1739 return (current->flags & PF_NO_SETAFFINITY) && (current->nr_cpus_allowed == 1);
1804 current->flags &= ~flags;
1805 current->flags |= orig_flags & flags;
2147 if (current->rseq) {
2155 __set_bit(RSEQ_EVENT_SIGNAL_BIT, &current->rseq_event_mask);
2185 t->rseq = current->rseq;
2186 t->rseq_sig = current->rseq_sig;
2187 t->rseq_event_mask = current->rseq_event_mask;