函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-27 08:55:18
Last Modify:2020-03-16 20:28:31 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:filter_cpuid_features

函数原型:static void filter_cpuid_features(struct cpuinfo_x86 *c, bool warn)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
boolwarn
513 feature循环
515  如果非cpu_has(c, feature)则继续下一循环
524  如果非如果level小于0则level大于Max extended CPUID function supported: 否则level大于Maximum supported CPUID level, -1=no CPUID: 则继续下一循环
529  clear_cpu_cap(c, feature)
530  如果非warn则继续下一循环
533  打印警告信息("CPU: CPU feature "X86_CAP_FMT" disabled, no CPUID level 0x%x\n", x86_cap_flag(feature), level)
调用者
名称描述
early_identify_cpuDo minimum CPU detection early.* Fields really needed: vendor, cpuid_level, family, model, mask,* cache alignment.* The others are not touched to avoid unwanted side effects.* WARNING: this function is only called on the boot CPU. Don't add code
identify_cpuThis does the hard work of actually picking apart the CPU stuff...