Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Find the sched_domain_topology_level where all CPU capacities are visible* for all CPUs.

Proto:static struct sched_domain_topology_level *asym_cpu_capacity_level(const struct cpumask *cpu_map)

Type:struct sched_domain_topology_level

Parameter:

TypeParameterName
const struct cpumask *cpu_map
1925  asym_level = 0
1926  bool asym = false
1927  struct sched_domain_topology_level * tl, * asym_tl = NULL
1931  cap = arch_scale_cpu_capacity(Uniprocessor. Assume all masks are "1". )
1934  If arch_scale_cpu_capacity(i) != cap Then
1935  asym = true
1936  Break
1940  If Not asym Then Return NULL
1949  max_capacity = arch_scale_cpu_capacity(i)
1950  tl_id = 0
1953  If tl_id < asym_level Then Go to next_level
1959  capacity = arch_scale_cpu_capacity(j)
1961  If capacity <= max_capacity Then Continue
1964  max_capacity = capacity
1965  asym_level = tl_id
1966  asym_tl = tl
1968  next_level :
1969  tl_id++
1973  Return asym_tl
Caller
NameDescribe
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs