Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
intcpu
struct sd_data *sdd
1059  sd = per_cpu_ptr(sd, cpu)
1060  child = child
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
1080  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
1081  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
1082  Else
1083  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
1084  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
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
Caller
NameDescribe
build_sched_groupsld_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