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