Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158373
b: refs/heads/master
c: d7ea17a
h: refs/heads/master
i:
  158371: c4e5d72
v: v3
  • Loading branch information
Ingo Molnar committed Sep 4, 2009
1 parent 72b7120 commit 412f5ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18a3885fc1ffa92c2212ff0afdf033403d5b0fa0
refs/heads/master: d7ea17a76916e456fcc78e45142c66f7fb875e3d
7 changes: 5 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3765,19 +3765,22 @@ static void update_group_power(struct sched_domain *sd, int cpu)
{
struct sched_domain *child = sd->child;
struct sched_group *group, *sdg = sd->groups;
unsigned long power;

if (!child) {
update_cpu_power(sd, cpu);
return;
}

sdg->cpu_power = 0;
power = 0;

group = child->groups;
do {
sdg->cpu_power += group->cpu_power;
power += group->cpu_power;
group = group->next;
} while (group != child->groups);

sdg->cpu_power = power;
}

/**
Expand Down

0 comments on commit 412f5ab

Please sign in to comment.