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 7/15] sched: Activate build of MN domains

I.e. call __build_mn_sched_domain, build corresponding groups
and calculate power.

Note: still missing are changes in various places
to actually detect domain hierarchy and fixup some stuff.

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

diff --git a/kernel/sched.c b/kernel/sched.c
index cc16629..6cfc840 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8862,6 +8862,7 @@ static int __build_sched_domains(const struct cpumask *cpu_map,

sd = __build_numa_sched_domains(&d, cpu_map, attr, i);
sd = __build_cpu_sched_domain(&d, cpu_map, attr, sd, i);
+ sd = __build_mn_sched_domain(&d, cpu_map, attr, sd, i);
sd = __build_mc_sched_domain(&d, cpu_map, attr, sd, i);
sd = __build_smt_sched_domain(&d, cpu_map, attr, sd, i);
}
@@ -8869,6 +8870,7 @@ 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);
+ build_sched_groups(&d, SD_LV_MN, cpu_map, i);
}

/* Set up physical groups */
@@ -8898,6 +8900,12 @@ static int __build_sched_domains(const struct cpumask *cpu_map,
init_sched_groups_power(i, sd);
}
#endif
+#ifdef CONFIG_SCHED_MN
+ for_each_cpu(i, cpu_map) {
+ sd = &per_cpu(cpu_node_domains, i).sd;
+ init_sched_groups_power(i, sd);
+ }
+#endif

for_each_cpu(i, cpu_map) {
sd = &per_cpu(phys_domains, i).sd;
--
1.6.0.4




\
 
 \ /
  Last update: 2009-08-20 15:41    [W:0.263 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site