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

Name:__cache_cpumap_setup

Proto:static void __cache_cpumap_setup(unsigned int cpu, int index, struct _cpuid4_info_regs *base)

Type:void

Parameter:

TypeParameterName
unsigned intcpu
intindex
struct _cpuid4_info_regs *base
937  this_cpu_ci = get_cpu_cacheinfo(cpu)
941  c = cpu_data(cpu)
943  If CPU vendor == X86_VENDOR_AMD || CPU vendor == X86_VENDOR_HYGON Then
945  If __cache_amd_cpumap_setup(cpu, index, base) Then Return
949  this_leaf = info_list + index
950  num_threads_sharing = 1 + num_threads_sharing
952  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
953  If num_threads_sharing == 1 Then Return
956  index_msb = get_count_order(num_threads_sharing)
958  for_each_online_cpu(i)
959  If apicid >> index_msb == apicid >> index_msb Then
960  sib_cpu_ci = get_cpu_cacheinfo(i)
962  If i == cpu || Not info_list Then Continue
964  sibling_leaf = info_list + index
965  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
966  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
Caller
NameDescribe
__populate_cache_leaves