函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_cpu_info

函数原型:void print_cpu_info(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
1613  const char * vendor = NULL
1615  如果CPU vendor 小于X86_VENDOR_NUM
1616  vendor等于c_vendor
1617  否则
1618  如果Maximum supported CPUID level, -1=no CPUID: 大于等于0则vendor等于x86_vendor_id
1622  如果vendor且非strstr(x86_model_id, vendor)则打印标准信息("%s ", vendor)
1625  如果x86_model_id[0]则打印标准信息("%s", x86_model_id)
1627  否则打印标准信息("%d86", CPU family )
1630  打印标准信息(" (family: 0x%x, model: 0x%x", CPU family , x86_model)
1632  如果x86_steppingMaximum supported CPUID level, -1=no CPUID: 大于等于0则打印标准信息(", stepping: 0x%x)\n", x86_stepping)
1634  否则打印标准信息(")\n")
调用者
名称描述
check_bugs检查CPU配置是否非法使用不具备的功能
native_smp_prepare_cpusPrepare for SMP bootup.*@max_cpus: configured maximum number of CPUs, It is a legacy parameter* for common interface support.