Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158357
b: refs/heads/master
c: a2af04c
h: refs/heads/master
i:
  158355: 687d19d
v: v3
  • Loading branch information
Andreas Herrmann authored and Ingo Molnar committed Aug 18, 2009
1 parent 0b97a58 commit 8ecff32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 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: 0e8e85c941d8f1b43bcc2e3b8b7026cdae476c53
refs/heads/master: a2af04cdbb748158043e31799b28c48272081600
23 changes: 10 additions & 13 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -8576,6 +8576,15 @@ static void build_sched_groups(struct s_data *d, enum sched_domain_level l,
&cpu_to_cpu_group,
d->send_covered, d->tmpmask);
break;
#endif
#ifdef CONFIG_SCHED_MC
case SD_LV_MC: /* set up multi-core groups */
cpumask_and(d->this_core_map, cpu_map, cpu_coregroup_mask(cpu));
if (cpu == cpumask_first(d->this_core_map))
init_sched_build_groups(d->this_core_map, cpu_map,
&cpu_to_core_group,
d->send_covered, d->tmpmask);
break;
#endif
default:
break;
Expand Down Expand Up @@ -8618,21 +8627,9 @@ static int __build_sched_domains(const struct cpumask *cpu_map,

for_each_cpu(i, cpu_map) {
build_sched_groups(&d, SD_LV_SIBLING, cpu_map, i);
build_sched_groups(&d, SD_LV_MC, cpu_map, i);
}

#ifdef CONFIG_SCHED_MC
/* Set up multi-core groups */
for_each_cpu(i, cpu_map) {
cpumask_and(d.this_core_map, cpu_coregroup_mask(i), cpu_map);
if (i != cpumask_first(d.this_core_map))
continue;

init_sched_build_groups(d.this_core_map, cpu_map,
&cpu_to_core_group,
d.send_covered, d.tmpmask);
}
#endif

/* Set up physical groups */
for (i = 0; i < nr_node_ids; i++) {
cpumask_and(d.nodemask, cpumask_of_node(i), cpu_map);
Expand Down

0 comments on commit 8ecff32

Please sign in to comment.