Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\fpu\internal.h Create Date:2022-07-28 07:29:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:FPU state switching for scheduling.* This is a two-stage process:* - switch_fpu_prepare() saves the old state.* This is done within the context of the old process.* - switch_fpu_finish() sets TIF_NEED_FPU_LOAD; the floating point state

Proto:static inline void switch_fpu_prepare(struct fpu *old_fpu, int cpu)

Type:void

Parameter:

TypeParameterName
struct fpu *old_fpu
intcpu
574  If static_cpu_has(Onboard FPU ) && Not (flags & I am a kernel thread ) Then
575  If Not These must be called with preempt disabled Then @last_cpu:* Records the last CPU on which this context was loaded into* FPU registers = -1
577  Else @last_cpu:* Records the last CPU on which this context was loaded into* FPU registers = cpu
581  trace_x86_fpu_regs_deactivated(old_fpu)
Caller
NameDescribe
__switch_toswitch_to(x,y) should switch tasks from x to y