[PATCH 10/12] sched: Seperate out build of ALLNODES sched groupsfrom __build_sched_domains

From: Andreas Herrmann
Date: Tue Aug 18 2009 - 07:00:33 EST



For the sake of completeness.
Now all calls to init_sched_build_groups() are contained in
build_sched_groups().

Signed-off-by: Andreas Herrmann <andreas.herrmann3@xxxxxxx>
---
kernel/sched.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 666017b..8f53701 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8699,6 +8699,12 @@ static void build_sched_groups(struct s_data *d, enum sched_domain_level l,
&cpu_to_phys_group,
d->send_covered, d->tmpmask);
break;
+#ifdef CONFIG_NUMA
+ case SD_LV_ALLNODES:
+ init_sched_build_groups(cpu_map, cpu_map, &cpu_to_allnodes_group,
+ d->send_covered, d->tmpmask);
+ break;
+#endif
default:
break;
}
@@ -8749,11 +8755,8 @@ static int __build_sched_domains(const struct cpumask *cpu_map,

#ifdef CONFIG_NUMA
/* Set up node groups */
- if (d.sd_allnodes) {
- init_sched_build_groups(cpu_map, cpu_map,
- &cpu_to_allnodes_group,
- d.send_covered, d.tmpmask);
- }
+ if (d.sd_allnodes)
+ build_sched_groups(&d, SD_LV_ALLNODES, cpu_map, 0);

for (i = 0; i < nr_node_ids; i++) {
/* Set up node groups */
--
1.6.4



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/