Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245548
b: refs/heads/master
c: 3739494
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 11, 2011
1 parent b74251d commit fe7d78e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: cd4ea6ae3982f6861da3b510e69cbc194f331d83
refs/heads/master: 3739494e08da50c8a68d65eed5ba3012a54b40d4
11 changes: 4 additions & 7 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -7280,7 +7280,9 @@ static void build_sched_groups(struct s_data *d, enum sched_domain_level l,
d->send_covered, d->tmpmask);

case SD_LV_ALLNODES:
init_sched_build_groups(cpu_map, cpu_map, &cpu_to_allnodes_group,
if (cpu == cpumask_first(cpu_map))
init_sched_build_groups(cpu_map, cpu_map,
&cpu_to_allnodes_group,
d->send_covered, d->tmpmask);
break;
#endif
Expand Down Expand Up @@ -7331,14 +7333,9 @@ static int __build_sched_domains(const struct cpumask *cpu_map,
build_sched_groups(&d, SD_LV_MC, cpu_map, i);
build_sched_groups(&d, SD_LV_CPU, cpu_map, i);
build_sched_groups(&d, SD_LV_NODE, cpu_map, i);
build_sched_groups(&d, SD_LV_ALLNODES, cpu_map, i);
}

#ifdef CONFIG_NUMA
/* Set up node groups */
if (d.sd_allnodes)
build_sched_groups(&d, SD_LV_ALLNODES, cpu_map, 0);
#endif

/* Calculate CPU power for physical packages and nodes */
#ifdef CONFIG_SCHED_SMT
for_each_cpu(i, cpu_map) {
Expand Down

0 comments on commit fe7d78e

Please sign in to comment.