函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This does the hard work of actually picking apart the CPU stuff...

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

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
1433  loops_per_jiffy等于loops_per_jiffy
1434  KB - valid for CPUS which support this call: 等于0
1435  CPU vendor 等于X86_VENDOR_UNKNOWN
1436  x86_model等于x86_stepping等于0
1437  x86_vendor_id[0]等于'\0'
1438  x86_model_id[0]等于'\0'
1439  cpuid returned max cores value: 等于1
1440  CPUID returned core id bits: 等于0
1441  cu_id等于0xff
1443  x86_clflush_size等于64
1444  x86_phys_bits等于36
1445  x86_virt_bits等于48
1452  In bytes 等于x86_clflush_size
1453  memset( & x86_capability, 0, x86_capability的长度)
1455  generic_identify(c)
1457  如果c_identifyc_identify(c)
1461  apply_forced_caps(c)
1464  apicid等于phys_pkg_id(initial_apicid, 0)
1477  如果c_initc_init(c)
1481  squash_the_stupid_serial_number(c)
1484  setup_smep(c)
1485  setup_smap(c)
1486  setup_umip(c)
1494  filter_cpuid_features(c, true)
1497  如果非x86_model_id[0]则
1499  p等于Look up CPU names by table lookup.
1500  如果pstrcpy(x86_model_id, p)
1502  否则输出格式化串
1509  detect_ht(c)
1512  These are the generic interfaces; they must not be declared if the* stubs in are to be invoked,* i.e. CONFIG_ARCH_RANDOM is not defined.
1513  x86_init_cache_qos(c)
1514  setup_pku(c)
1520  apply_forced_caps(c)
1528  如果c不等于common cpu data for all cpus
1530 i小于N 32-bit words worth of info 循环x86_capability[i]与等于x86_capability[i]
1534 i小于N 32-bit words worth of info N 32-bit bug flags 循环x86_capability[i]或等于x86_capability[i]
1539  mcheck_cpu_init(c)
1541  select_idle_routine(c)
1544  numa_add_cpu(当前cpu ID())
调用者
名称描述
identify_boot_cpu
identify_secondary_cpu