Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_overlap_sched_group

Proto:static void init_overlap_sched_group(struct sched_domain *sd, struct sched_group *sg)

Type:void

Parameter:

TypeParameterName
struct sched_domain *sd
struct sched_group *sg
901  mask = sched_domains_tmpmask2
902  sdd = private
906  Build the balance mask; it contains only those CPUs that can arrive at this* group and should be considered to continue balancing
907  cpu = cpumask_first_and - return the first cpu from *srcp1 & *srcp2*@src1p: the first input*@src2p: the second input* Returns >= nr_cpu_ids if no cpus set in both. See also cpumask_next_and().(sched_group_span(sg), mask)
909  sgc = per_cpu_ptr(sgc, cpu)
910  If atomic_inc_return( & ref) == 1 Then pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
912  Else WARN_ON_ONCE(!pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input)
920  sg_span = sched_group_span(sg)
921  capacity = SCHED_CAPACITY_SCALE * pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.
922  min_capacity = SCHED_CAPACITY_SCALE
923  max_capacity = SCHED_CAPACITY_SCALE
Caller
NameDescribe
build_overlap_sched_groups