函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\smpboot.c Create Date:2022-07-27 09:24:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set_cpu_sibling_map

函数原型:void set_cpu_sibling_map(int cpu)

返回类型:void

参数:

类型参数名称
intcpu
567  has_smt等于Number of siblings per CPU package 大于1
568  has_mp等于has_smtx86_max_cores大于1
569  c等于cpu_data(cpu)
573  设置CPU信息
575  如果非has_mp
576  设置CPU信息
577  设置CPU信息
578  设置CPU信息
579  设置CPU信息
580  umber of cores as seen by the OS: 等于1
581  返回
585  o等于cpu_data(i)
587  如果i恒等于cpuhas_smtmatch_smt(c, o)则link_mask(topology_sibling_cpumask, cpu, i)
590  如果i恒等于cpuhas_mpmatch_llc(c, o)则link_mask(cpu_llc_shared_mask, cpu, i)
600  o等于cpu_data(i)
621  如果i不等于cpubooted_cores自加
626  如果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.且非topology_same_node(c, o)则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  如果i恒等于cpuhas_mpmatch_die(c, o)则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  如果threads大于Maximum number of SMT threads on any online core Maximum number of SMT threads on any online core 等于threads
调用者
名称描述
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.