Function report |
Source Code:kernel\sched\topology.c |
Create Date:2022-07-28 09:42:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Package topology (also see the load-balance blurb in fair
Proto:static struct *get_group(int cpu, struct sd_data *sdd)
Type:struct
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | cpu | |
| struct sd_data * | sdd |
| 1059 | sd = per_cpu_ptr(sd, cpu) |
| 1064 | If child Then cpu = Uniprocessor. Assume all masks are "1". |
| 1067 | sg = per_cpu_ptr(sg, cpu) |
| 1068 | sgc = per_cpu_ptr(sgc, cpu) |
| 1071 | already_visited = atomic_inc_return( & ref) > 1 |
| 1073 | WARN_ON(already_visited != (atomic_inc_return( & ref) > 1)) |
| 1076 | If already_visited Then Return sg |
| 1079 | If child Then |
| 1082 | Else |
| 1087 | capacity = SCHED_CAPACITY_SCALE * pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in. |
| 1088 | min_capacity = SCHED_CAPACITY_SCALE |
| 1089 | max_capacity = SCHED_CAPACITY_SCALE |
| 1091 | Return sg |
| Name | Describe |
|---|---|
| build_sched_groups | ld_sched_groups will build a circular linked list of the groups* covered by the given span, will set each group's ->cpumask correctly,* and will initialize their ->sgc.* Assumes the sched_domain tree is fully constructed |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |