Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\topology.c Create Date:2022-07-28 09:42:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Ensure topology masks are sane, i.e. there are no conflicts (overlaps) for* any two given CPUs at this (non-NUMA) topology level.

Proto:static bool topology_span_sane(struct sched_domain_topology_level *tl, const struct cpumask *cpu_map, int cpu)

Type:bool

Parameter:

TypeParameterName
struct sched_domain_topology_level *tl
const struct cpumask *cpu_map
intcpu
1892  If flags & SDTL_OVERLAP Then Return true
1902  If i == cpu Then Continue
1910  If Not pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input && pumask_intersects - (*src1p & *src2p) != 0*@src1p: the first input*@src2p: the second input Then Return false
1915  Return true
Caller
NameDescribe
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs