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

Name:__populate_cache_leaves

Proto:static int __populate_cache_leaves(unsigned int cpu)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
1020  this_cpu_ci = get_cpu_cacheinfo(cpu)
1021  this_leaf = info_list
1022  struct _cpuid4_info_regs id4_regs = {}
1024  When idx < num_leaves cycle
1025  ret = cpuid4_cache_lookup_regs(idx, & id4_regs)
1026  If ret Then Return ret
1028  The max shared threads number comes from CPUID.4:EAX[25-14] with input* ECX as cache index. Then right shift apicid by the number's order to get* cache id for this cache node.
1029  ci_leaf_init(this_leaf++, & id4_regs)
1030  __cache_cpumap_setup(cpu, idx, & id4_regs)
1032  cpu_map_populated = true
1034  Return 0
Caller
NameDescribe
_populate_cache_leaves