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

Proto:static void get_cache_id(int cpu, struct _cpuid4_info_regs *id4_regs)

Type:void

Parameter:

TypeParameterName
intcpu
struct _cpuid4_info_regs *id4_regs
1008  c = cpu_data(cpu)
1012  num_threads_sharing = 1 + num_threads_sharing
1013  index_msb = get_count_order(num_threads_sharing)
1014  id = apicid >> index_msb
Caller
NameDescribe
__populate_cache_leaves