Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245551
b: refs/heads/master
c: a9c9a9b
h: refs/heads/master
i:
  245549: 52869b0
  245547: b74251d
  245543: b3ce38e
  245535: 3ee8572
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 11, 2011
1 parent 6ea7728 commit c73f848
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 35 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: 21d42ccfd6c6c11f96c2acfd32a85cfc33514d3a
refs/heads/master: a9c9a9b6bff27ac9c746344a9c1a19bf3327002c
39 changes: 5 additions & 34 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -7334,43 +7334,14 @@ static int __build_sched_domains(const struct cpumask *cpu_map,
}

/* Calculate CPU power for physical packages and nodes */
#ifdef CONFIG_SCHED_SMT
for_each_cpu(i, cpu_map) {
sd = &per_cpu(cpu_domains, i).sd;
init_sched_groups_power(i, sd);
}
#endif
#ifdef CONFIG_SCHED_MC
for_each_cpu(i, cpu_map) {
sd = &per_cpu(core_domains, i).sd;
init_sched_groups_power(i, sd);
}
#endif
#ifdef CONFIG_SCHED_BOOK
for_each_cpu(i, cpu_map) {
sd = &per_cpu(book_domains, i).sd;
init_sched_groups_power(i, sd);
}
#endif

for_each_cpu(i, cpu_map) {
sd = &per_cpu(phys_domains, i).sd;
init_sched_groups_power(i, sd);
}

#ifdef CONFIG_NUMA
for_each_cpu(i, cpu_map) {
sd = &per_cpu(node_domains, i).sd;
init_sched_groups_power(i, sd);
}
for (i = nr_cpumask_bits-1; i >= 0; i--) {
if (!cpumask_test_cpu(i, cpu_map))
continue;

if (d.sd_allnodes) {
for_each_cpu(i, cpu_map) {
sd = &per_cpu(allnodes_domains, i).sd;
sd = *per_cpu_ptr(d.sd, i);
for (; sd; sd = sd->parent)
init_sched_groups_power(i, sd);
}
}
#endif

/* Attach the domains */
for_each_cpu(i, cpu_map) {
Expand Down

0 comments on commit c73f848

Please sign in to comment.