函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cacheinfo_amd_init_llc_id

函数原型:void cacheinfo_amd_init_llc_id(struct cpuinfo_x86 *c, int cpu, u8 node_id)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
intcpu
u8node_id
655  如果非cpuid_edx(0x80000006)则返回
658  如果CPU family 小于0x17则
660  per_cpu(cpu_llc_id, cpu)等于node_id
661  否则如果CPU family 恒等于0x17且x86_model小于等于0x1F则
666  per_cpu(cpu_llc_id, cpu)等于apicid右移3位
667  否则
672  num_sharing_cache等于0
673  llc_index等于find_num_cache_leaves(c)减1
675  cpuid_count(0x8000001d, llc_index, & eax, & ebx, & ecx, & edx)
676  如果eaxnum_sharing_cache等于eax右移14位按位与0xfff的值加1
679  如果num_sharing_cache
682  per_cpu(cpu_llc_id, cpu)等于apicid右移bits
调用者
名称描述
amd_get_topologyFixup core topology information for* (1) AMD multi-node processors* Assumption: Number of cores in each internal node is the same.* (2) AMD processors supporting compute units