[PATCH 6/15] sched: Add support for MN domain in build_sched_groups

From: Andreas Herrmann
Date: Thu Aug 20 2009 - 09:38:33 EST



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

diff --git a/kernel/sched.c b/kernel/sched.c
index 7b8b2ab..cc16629 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8805,6 +8805,16 @@ static void build_sched_groups(struct s_data *d, enum sched_domain_level l,
d->send_covered, d->tmpmask);
break;
#endif
+#ifdef CONFIG_SCHED_MN
+ case SD_LV_MN: /* set up multi-node groups */
+ cpumask_and(d->this_cpu_node_map, cpu_map,
+ topology_cpu_node_cpumask(cpu));
+ if (cpu == cpumask_first(d->this_cpu_node_map))
+ init_sched_build_groups(d->this_cpu_node_map, cpu_map,
+ &cpu_to_cpu_node_group,
+ d->send_covered, d->tmpmask);
+ break;
+#endif
case SD_LV_CPU: /* set up physical groups */
cpumask_and(d->nodemask, cpumask_of_node(cpu), cpu_map);
if (!cpumask_empty(d->nodemask))
--
1.6.0.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/