Lines Matching refs:tsk
11 int init_fpu(struct task_struct *tsk)
13 if (tsk_used_math(tsk)) {
14 if ((boot_cpu_data.flags & CPU_HAS_FPU) && tsk == current)
15 unlazy_fpu(tsk, task_pt_regs(tsk));
22 if (!tsk->thread.xstate) {
23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep,
25 if (!tsk->thread.xstate)
30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu;
34 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu;
39 set_stopped_child_used_math(tsk);
46 struct task_struct *tsk = current;
48 restore_fpu(tsk);
50 task_thread_info(tsk)->status |= TS_USEDFPU;
51 tsk->thread.fpu_counter++;
56 struct task_struct *tsk = current;
64 if (!tsk_used_math(tsk)) {
70 ret = init_fpu(tsk);