Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\topology.c Create Date:2022-07-28 09:41:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:update_top_cache_domain

Proto:static void update_top_cache_domain(int cpu)

Type:void

Parameter:

TypeParameterName
intcpu
629  struct sds = NULL
631  id = cpu
632  size = 1
634  sd = highest_flag_domain(cpu, SD_SHARE_PKG_RESOURCES)
635  If sd Then
636  id = Uniprocessor. Assume all masks are "1".
637  size = pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.
638  sds = shared
641  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(per_cpu(Keep a special pointer to the highest sched_domain that has* SD_SHARE_PKG_RESOURCE set (Last Level Cache Domain) for this* allows us to avoid some pointer chasing select_idle_sibling(), cpu), sd)
642  per_cpu(sd_llc_size, cpu) = size
643  per_cpu(sd_llc_id, cpu) = id
644  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(per_cpu(sd_llc_shared, cpu), sds)
646  sd = lowest_flag_domain(cpu, SD_NUMA)
647  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(per_cpu(sd_numa, cpu), sd)
649  sd = highest_flag_domain(cpu, SD_ASYM_PACKING)
650  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(per_cpu(sd_asym_packing, cpu), sd)
652  sd = lowest_flag_domain(cpu, SD_ASYM_CPUCAPACITY)
653  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(per_cpu(sd_asym_cpucapacity, cpu), sd)
Caller
NameDescribe
cpu_attach_domainAttach the domain 'sd' to 'cpu' as its base domain. Callers must* hold the hotplug lock.