Function report |
Source Code:kernel\sched\topology.c |
Create Date:2022-07-28 09:42:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Initialize sched groups cpu_capacity
Proto:static void init_sched_groups_capacity(int cpu, struct sched_domain *sd)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | cpu | |
| struct sched_domain * | sd |
| 1153 | Do |
| 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 | If Not (flags & SD_ASYM_PACKING) Then Go to next |
| 1164 | Else if sched_asym_prefer(cpu, max_cpu) Then max_cpu = cpu |
| 1167 | asym_prefer_cpu = max_cpu |
| 1169 | next : |
| 1176 | update_group_capacity(sd, cpu) |
| Name | Describe |
|---|---|
| build_sched_domains | Build sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs |
| 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 |