[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-86548096f252bfe2065f1ea2d301e7319a16375d@git.kernel.org>
Date: Tue, 18 Aug 2009 16:53:28 GMT
From: tip-bot for Andreas Herrmann <andreas.herrmann3@....com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
andreas.herrmann3@....com, peterz@...radead.org,
tglx@...utronix.de, mingo@...e.hu
Subject: [tip:sched/domains] sched: Separate out build of CPU sched groups from __build_sched_domains
Commit-ID: 86548096f252bfe2065f1ea2d301e7319a16375d
Gitweb: http://git.kernel.org/tip/86548096f252bfe2065f1ea2d301e7319a16375d
Author: Andreas Herrmann <andreas.herrmann3@....com>
AuthorDate: Tue, 18 Aug 2009 12:59:28 +0200
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Tue, 18 Aug 2009 18:35:43 +0200
sched: Separate out build of CPU sched groups from __build_sched_domains
... to further strip down __build_sched_domains().
Signed-off-by: Andreas Herrmann <andreas.herrmann3@....com>
Cc: Peter Zijlstra <peterz@...radead.org>
LKML-Reference: <20090818105928.GJ29515@...erich.amd.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/sched.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index f2c202f..b09a41c 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8586,6 +8586,13 @@ static void build_sched_groups(struct s_data *d, enum sched_domain_level l,
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))
+ init_sched_build_groups(d->nodemask, cpu_map,
+ &cpu_to_phys_group,
+ d->send_covered, d->tmpmask);
+ break;
default:
break;
}
@@ -8631,15 +8638,8 @@ static int __build_sched_domains(const struct cpumask *cpu_map,
}
/* Set up physical groups */
- for (i = 0; i < nr_node_ids; i++) {
- cpumask_and(d.nodemask, cpumask_of_node(i), cpu_map);
- if (cpumask_empty(d.nodemask))
- continue;
-
- init_sched_build_groups(d.nodemask, cpu_map,
- &cpu_to_phys_group,
- d.send_covered, d.tmpmask);
- }
+ for (i = 0; i < nr_node_ids; i++)
+ build_sched_groups(&d, SD_LV_CPU, cpu_map, i);
#ifdef CONFIG_NUMA
/* Set up node groups */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists