函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\topology.c Create Date:2022-07-27 10:43:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Find the sched_domain_topology_level where all CPU capacities are visible* for all CPUs.

函数原型:static struct sched_domain_topology_level *asym_cpu_capacity_level(const struct cpumask *cpu_map)

返回类型:struct sched_domain_topology_level

参数:

类型参数名称
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  如果arch_scale_cpu_capacity(i)不等于cap
1935  asym = true
1936  退出
1940  如果非asym则返回:NULL
1949  max_capacity等于arch_scale_cpu_capacity(i)
1950  tl_id等于0
1953  如果tl_id小于asym_level则转到:next_level
1959  capacity等于arch_scale_cpu_capacity(j)
1961  如果capacity小于等于max_capacity则继续下一循环
1964  max_capacity等于capacity
1965  asym_level等于tl_id
1966  asym_tl等于tl
1968  next_level :
1969  tl_id自加
1973  返回:asym_tl
调用者
名称描述
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs