Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ld_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

Proto:static int build_sched_groups(struct sched_domain *sd, int cpu)

Type:int

Parameter:

TypeParameterName
struct sched_domain *sd
intcpu
1104  struct first = NULL, * last = NULL
1105  sdd = private
1106  span = sched_domain_span(sd)
1110  lockdep_assert_held( & SPDX-License-Identifier: GPL-2.0)
1111  covered = Protected by sched_domains_mutex:
1113  pumask_clear - clear all cpus (< nr_cpu_ids) in a cpumask*@dstp: the cpumask pointer
1118  If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Continue
1121  sg = Package topology (also see the load-balance blurb in fair
1123  pumask_or - *dstp = *src1p | *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input
1125  If Not first Then first = sg
1127  If last Then next = sg
1129  last = sg
1131  next = first
1132  groups = first
1134  Return 0
Caller
NameDescribe
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs