函数逻辑报告 |
Source Code:kernel\sched\topology.c |
Create Date:2022-07-27 10:42:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Initialize sched groups cpu_capacity
函数原型:static void init_sched_groups_capacity(int cpu, struct sched_domain *sd)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | cpu | |
| struct sched_domain * | sd |
| 1153 | 循环 |
| 1154 | max_cpu等于负1 |
| 1156 | group_weight等于pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in. |
| 1158 | 如果非flags按位与SD_ASYM_PACKING的值则转到:next |
| 1164 | 否则如果sched_asym_prefer(cpu, max_cpu)则max_cpu等于cpu |
| 1167 | asym_prefer_cpu等于max_cpu |
| 1169 | next : |
| 1176 | update_group_capacity(sd, cpu) |
| 名称 | 描述 |
|---|---|
| build_sched_domains | Build sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |