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:find_num_cache_leaves

Proto:static int find_num_cache_leaves(struct cpuinfo_x86 *c)

Type:int

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
632  i = -1
634  If CPU vendor == X86_VENDOR_AMD || CPU vendor == X86_VENDOR_HYGON Then op = 0x8000001d
637  Else op = 4
640  Do
641  ++i
643  cpuid_count(op, i, & eax, & ebx, & ecx, & edx)
644  full = eax
645  When type != CTYPE_NULL cycle
646  Return i
Caller
NameDescribe
cacheinfo_amd_init_llc_id
init_amd_cacheinfo
init_hygon_cacheinfo
init_intel_cacheinfo