Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\smpboot.c Create Date:2022-07-28 08:24:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_cpu_sibling_map

Proto:void set_cpu_sibling_map(int cpu)

Type:void

Parameter:

TypeParameterName
intcpu
567  has_smt = Number of siblings per CPU package > 1
568  has_mp = has_smt || x86_max_cores > 1
569  c = cpu_data(cpu)
573  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
575  If Not has_mp Then
576  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
577  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
578  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
579  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
580  umber of cores as seen by the OS: = 1
581  Return
585  o = cpu_data(i)
587  If i == cpu || has_smt && match_smt(c, o) Then link_mask(topology_sibling_cpumask, cpu, i)
590  If i == cpu || has_mp && match_llc(c, o) Then link_mask(cpu_llc_shared_mask, cpu, i)
600  o = cpu_data(i)
626  If Unlike the other levels, we do not enforce keeping a* multicore group inside a NUMA node. If this happens, we will* discard the MC level of the topology later. && Not topology_same_node(c, o) Then Set if a package/die has multiple NUMA nodes inside.* AMD Magny-Cours, Intel Cluster-on-Die, and Intel* Sub-NUMA Clustering have this. = true
629  If i == cpu || has_mp && match_die(c, o) Then link_mask(topology_die_cpumask, cpu, i)
633  threads = pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.
634  If threads > Maximum number of SMT threads on any online core Then Maximum number of SMT threads on any online core = threads
Caller
NameDescribe
smp_callinReport back to the Boot Processor during boot time or to the caller processor* during CPU online.
native_smp_prepare_cpusPrepare for SMP bootup.*@max_cpus: configured maximum number of CPUs, It is a legacy parameter* for common interface support.