Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1632876 > unrolled thread
| Started by | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| First post | 2017-04-28 15:40 +0200 |
| Last post | 2017-05-02 03:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 07/14] sched/topology: Optimize build_group_mask() Peter Zijlstra <peterz@infradead.org> - 2017-04-28 15:40 +0200
Re: [PATCH 07/14] sched/topology: Optimize build_group_mask() Rik van Riel <riel@redhat.com> - 2017-05-02 03:00 +0200
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Date | 2017-04-28 15:40 +0200 |
| Subject | [PATCH 07/14] sched/topology: Optimize build_group_mask() |
| Message-ID | <tBehP-7VW-3@gated-at.bofh.it> |
The group mask is always used in intersection with the group cpus. So,
when building the group mask, we don't have to care about cpus that are
not part of the group.
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: riel@redhat.com
Signed-off-by: Lauro Ramos Venancio <lvenanci@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1492717903-5195-2-git-send-email-lvenanci@redhat.com
---
kernel/sched/topology.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/kernel/sched/topology.c
+++ b/kernel/sched/topology.c
@@ -506,12 +506,12 @@ enum s_alloc {
*/
static void build_group_mask(struct sched_domain *sd, struct sched_group *sg)
{
- const struct cpumask *span = sched_domain_span(sd);
+ const struct cpumask *sg_span = sched_group_cpus(sg);
struct sd_data *sdd = sd->private;
struct sched_domain *sibling;
int i;
- for_each_cpu(i, span) {
+ for_each_cpu(i, sg_span) {
sibling = *per_cpu_ptr(sdd->sd, i);
if (!cpumask_test_cpu(i, sched_domain_span(sibling)))
continue;
[toc] | [next] | [standalone]
| From | Rik van Riel <riel@redhat.com> |
|---|---|
| Date | 2017-05-02 03:00 +0200 |
| Message-ID | <tCukz-7Ii-23@gated-at.bofh.it> |
| In reply to | #1632876 |
On Fri, 2017-04-28 at 15:20 +0200, Peter Zijlstra wrote: > The group mask is always used in intersection with the group cpus. > So, > when building the group mask, we don't have to care about cpus that > are > not part of the group. > > Cc: Ingo Molnar <mingo@kernel.org> > Cc: Mike Galbraith <efault@gmx.de> > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: riel@redhat.com > Signed-off-by: Lauro Ramos Venancio <lvenanci@redhat.com> > Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> > Link: http://lkml.kernel.org/r/1492717903-5195-2-git-send-email-lvena > nci@redhat.com > Acked-by: Rik van Riel <riel@redhat.com>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web