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()
111 return task_pid_nr(current); in get_current_pid()
123 if (current->thread.prev_sched != NULL) in new_thread_handler()
124 schedule_tail(current->thread.prev_sched); in new_thread_handler()
125 current->thread.prev_sched = NULL; in new_thread_handler()
127 fn = current->thread.request.u.thread.proc; in new_thread_handler()
128 arg = current->thread.request.u.thread.arg; in new_thread_handler()
134 userspace(¤t->thread.regs.regs, current_thread_info()->aux_fp_regs); in new_thread_handler()
142 schedule_tail(current->thread.prev_sched); in fork_handler()
149 arch_switch_to(current); in fork_handler()
151 current->thread.prev_sched = NULL; in fork_handler()
153 userspace(¤t->thread.regs.regs, current_thread_info()->aux_fp_regs); in fork_handler()
160 int kthread = current->flags & (PF_KTHREAD | PF_IO_WORKER); in copy_thread()
174 arch_copy_thread(¤t->thread.arch, &p->thread.arch); in copy_thread()
340 struct task_struct *task = t ? t : current; in singlestepping()
361 if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) in arch_align_stack()