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:55
Last Modify:2020-03-16 20:07:28 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cpuid4_cache_lookup_regs

Proto:static int cpuid4_cache_lookup_regs(int index, struct _cpuid4_info_regs *this_leaf)

Type:int

Parameter:

TypeParameterName
intindex
struct _cpuid4_info_regs *this_leaf
600  If CPU vendor == X86_VENDOR_AMD Then
601  If boot_cpu_has(Topology extensions CPUID leafs ) Then cpuid_count(0x8000001d, index, & full, & full, & full, & edx)
604  Else amd_cpuid4(index, & eax, & ebx, & ecx)
607  Else if CPU vendor == X86_VENDOR_HYGON Then
608  cpuid_count(0x8000001d, index, & full, & full, & full, & edx)
611  Else
612  cpuid_count(4, index, & full, & full, & full, & edx)
615  If type == CTYPE_NULL Then Return -EIO
618  eax = eax
619  ebx = ebx
620  ecx = ecx
621  size = (number_of_sets + 1) * (coherency_line_size + 1) * (physical_line_partition + 1) * (ways_of_associativity + 1)
625  Return 0
Caller
NameDescribe
init_intel_cacheinfo
__populate_cache_leaves