diff options
author | Andreas Herrmann <andreas.herrmann3@amd.com> | 2009-08-18 07:00:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-18 12:35:44 -0400 |
commit | de616e36c700dc312d9021dd75f769c463f85122 (patch) | |
tree | ca8cc9a8831ca4d0a7b82b9c53ac2dfce0025344 /kernel/sched.c | |
parent | 86548096f252bfe2065f1ea2d301e7319a16375d (diff) |
sched: Separate out build of ALLNODES sched groups from __build_sched_domains
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@amd.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20090818110013.GK29515@alberich.amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index b09a41c93ae1..52c1953bc41d 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -8593,6 +8593,12 @@ static void build_sched_groups(struct s_data *d, enum sched_domain_level l, | |||
8593 | &cpu_to_phys_group, | 8593 | &cpu_to_phys_group, |
8594 | d->send_covered, d->tmpmask); | 8594 | d->send_covered, d->tmpmask); |
8595 | break; | 8595 | break; |
8596 | #ifdef CONFIG_NUMA | ||
8597 | case SD_LV_ALLNODES: | ||
8598 | init_sched_build_groups(cpu_map, cpu_map, &cpu_to_allnodes_group, | ||
8599 | d->send_covered, d->tmpmask); | ||
8600 | break; | ||
8601 | #endif | ||
8596 | default: | 8602 | default: |
8597 | break; | 8603 | break; |
8598 | } | 8604 | } |
@@ -8643,11 +8649,8 @@ static int __build_sched_domains(const struct cpumask *cpu_map, | |||
8643 | 8649 | ||
8644 | #ifdef CONFIG_NUMA | 8650 | #ifdef CONFIG_NUMA |
8645 | /* Set up node groups */ | 8651 | /* Set up node groups */ |
8646 | if (d.sd_allnodes) { | 8652 | if (d.sd_allnodes) |
8647 | init_sched_build_groups(cpu_map, cpu_map, | 8653 | build_sched_groups(&d, SD_LV_ALLNODES, cpu_map, 0); |
8648 | &cpu_to_allnodes_group, | ||
8649 | d.send_covered, d.tmpmask); | ||
8650 | } | ||
8651 | 8654 | ||
8652 | for (i = 0; i < nr_node_ids; i++) { | 8655 | for (i = 0; i < nr_node_ids; i++) { |
8653 | /* Set up node groups */ | 8656 | /* Set up node groups */ |