Function report |
Source Code:kernel\sched\topology.c |
Create Date:2022-07-28 09:43:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Partition sched domains as specified by the 'ndoms_new'* cpumasks in the array doms_new[] of cpumasks. This compares* doms_new[] to the current sched domain partitioning, doms_cur[].* It destroys each deleted domain and builds each new domain.
Proto:void partition_sched_domains_locked(int ndoms_new, cpumask_var_t doms_new[], struct sched_domain_attr *dattr_new)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
int | ndoms_new | |
cpumask_var_t | doms_new | |
struct sched_domain_attr * | dattr_new |
2221 | __maybe_unused = has_eas |
2231 | new_topology = arch_update_cpu_topology lets virtualized architectures update the* CPU core maps. It is supposed to return 1 if the topology changed* or 0 if it stayed the same. |
2233 | If Not doms_new Then |
2234 | WARN_ON_ONCE(dattr_new) |
2235 | n = 0 |
2236 | doms_new = alloc_sched_domains(1) |
2237 | If doms_new Then |
2242 | Else |
2247 | When i < Number of sched domains in 'doms_cur': cycle |
2248 | When j < n && Not new_topology cycle |
2266 | match1 : |
2271 | If Not doms_new Then |
2272 | n = 0 |
2280 | When j < n && Not new_topology cycle |
2286 | Build sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs |
2287 | match2 : |
2314 | Current sched domains: = doms_new |
2318 | register_sched_domain_sysctl() |
Name | Describe |
---|---|
partition_sched_domains | Call with hotplug lock held |
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 |