lkml.org 
[lkml]   [2009]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 6/15] sched: Add support for MN domain in build_sched_groups

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
---
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




\
 
 \ /
  Last update: 2009-08-20 15:41    [from the cache]
©2003-2011 Jasper Spaans