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

Name:__cache_amd_cpumap_setup

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

Type:int

Parameter:

TypeParameterName
unsigned intcpu
intindex
struct _cpuid4_info_regs *base
880  this_cpu_ci = get_cpu_cacheinfo(cpu)
888  If index == 3 Then
890  this_cpu_ci = get_cpu_cacheinfo(i)
891  If Not info_list Then Continue
893  this_leaf = info_list + index
895  If Not cpu_online(sibling) Then Continue
897  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
901  Else if boot_cpu_has(Topology extensions CPUID leafs ) Then
904  nshared = num_threads_sharing + 1
905  apicid = apicid
906  first = apicid - apicid % nshared
907  last = first + nshared - 1
911  If Not info_list Then Continue
914  apicid = apicid
915  If apicid < first || apicid > last Then Continue
928  Else Return 0
931  Return 1
Caller
NameDescribe
__cache_cpumap_setup