Skip to content

Commit a090c4f

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
sched/topology: Improve comments
Mike provided a better comment for destroy_sched_domain() ... Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 213c5a4 commit a090c4f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kernel/sched/topology.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,9 @@ static void free_sched_groups(struct sched_group *sg, int free_sgc)
344344
static void destroy_sched_domain(struct sched_domain *sd)
345345
{
346346
/*
347-
* A sched domain has many groups' reference, and an overlapping
348-
* domain has private groups, iterate and nuke them all.
347+
* A normal sched domain may have multiple group references, an
348+
* overlapping domain, having private groups, only one. Iterate,
349+
* dropping group/capacity references, freeing where none remain.
349350
*/
350351
free_sched_groups(sd->groups, 1);
351352

0 commit comments

Comments
 (0)