函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\fpu\internal.h Create Date:2022-07-27 08:28:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static inline void switch_fpu_prepare(struct fpu *old_fpu, int cpu)

返回类型:void

参数:

类型参数名称
struct fpu *old_fpu
intcpu
574  如果static_cpu_has(Onboard FPU )且非flags按位与I am a kernel thread 的值则
575  如果非These must be called with preempt disabled@last_cpu:* Records the last CPU on which this context was loaded into* FPU registers等于负1
577  否则@last_cpu:* Records the last CPU on which this context was loaded into* FPU registers等于cpu
581  trace_x86_fpu_regs_deactivated(old_fpu)
调用者
名称描述
__switch_toswitch_to(x,y) should switch tasks from x to y