Lines Matching refs:current
91 arch_switch_to(current); in __switch_to()
93 return current->thread.prev_sched; in __switch_to()
98 struct pt_regs *regs = ¤t->thread.regs; in interrupt_end()
110 return task_pid_nr(current); in get_current_pid()
122 if (current->thread.prev_sched != NULL) in new_thread_handler()
123 schedule_tail(current->thread.prev_sched); in new_thread_handler()
124 current->thread.prev_sched = NULL; in new_thread_handler()
126 fn = current->thread.request.u.thread.proc; in new_thread_handler()
127 arg = current->thread.request.u.thread.arg; in new_thread_handler()
133 userspace(¤t->thread.regs.regs, current_thread_info()->aux_fp_regs); in new_thread_handler()
141 schedule_tail(current->thread.prev_sched); in fork_handler()
148 arch_switch_to(current); in fork_handler()
150 current->thread.prev_sched = NULL; in fork_handler()
152 userspace(¤t->thread.regs.regs, current_thread_info()->aux_fp_regs); in fork_handler()
159 int kthread = current->flags & PF_KTHREAD; in copy_thread()
173 arch_copy_thread(¤t->thread.arch, &p->thread.arch); in copy_thread()
342 struct task_struct *task = t ? t : current; in singlestepping()
363 if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) in arch_align_stack()
374 if ((p == NULL) || (p == current) || (p->state == TASK_RUNNING)) in get_wchan()