Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\cacheinfo.c Create Date:2022-07-28 07:53:56
Last Modify:2020-03-16 20:07:28 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cacheinfo_amd_init_llc_id

Proto:void cacheinfo_amd_init_llc_id(struct cpuinfo_x86 *c, int cpu, u8 node_id)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
intcpu
u8node_id
655  If Not cpuid_edx(0x80000006) Then Return
658  If CPU family < 0x17 Then
660  per_cpu(cpu_llc_id, cpu) = node_id
661  Else if CPU family == 0x17 && x86_model <= 0x1F Then
666  per_cpu(cpu_llc_id, cpu) = apicid >> 3
667  Else
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  If eax Then num_sharing_cache = ( eax >> 14 & 0xfff) + 1
679  If num_sharing_cache Then
Caller
NameDescribe
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