]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.12-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2017 09:04:59 +0000 (11:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2017 09:04:59 +0000 (11:04 +0200)
added patches:
sched-topology-optimize-build_group_mask.patch

queue-4.12/sched-topology-fix-overlapping-sched_group_mask.patch
queue-4.12/sched-topology-optimize-build_group_mask.patch [new file with mode: 0644]
queue-4.12/series

index e3e6273cf7e9018ece7906aaa3bf4d08bce2f2b9..a7bfab770b7e45a3e7ef45ed8f5d9456f27e0c04 100644 (file)
@@ -73,7 +73,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
   * range.
 @@ -497,11 +500,24 @@ static void build_group_mask(struct sche
  
-       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)))
 +
diff --git a/queue-4.12/sched-topology-optimize-build_group_mask.patch b/queue-4.12/sched-topology-optimize-build_group_mask.patch
new file mode 100644 (file)
index 0000000..22a9ff8
--- /dev/null
@@ -0,0 +1,46 @@
+From f32d782e31bf079f600dcec126ed117b0577e85c Mon Sep 17 00:00:00 2001
+From: Lauro Ramos Venancio <lvenanci@redhat.com>
+Date: Thu, 20 Apr 2017 16:51:40 -0300
+Subject: sched/topology: Optimize build_group_mask()
+
+From: Lauro Ramos Venancio <lvenanci@redhat.com>
+
+commit f32d782e31bf079f600dcec126ed117b0577e85c upstream.
+
+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.
+
+Signed-off-by: Lauro Ramos Venancio <lvenanci@redhat.com>
+Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
+Cc: Linus Torvalds <torvalds@linux-foundation.org>
+Cc: Mike Galbraith <efault@gmx.de>
+Cc: Peter Zijlstra <peterz@infradead.org>
+Cc: Thomas Gleixner <tglx@linutronix.de>
+Cc: lwang@redhat.com
+Cc: riel@redhat.com
+Link: http://lkml.kernel.org/r/1492717903-5195-2-git-send-email-lvenanci@redhat.com
+Signed-off-by: Ingo Molnar <mingo@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ kernel/sched/topology.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/kernel/sched/topology.c
++++ b/kernel/sched/topology.c
+@@ -490,12 +490,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;
index 01a4deb17266e7366f8f8052f90e679f03835ad8..3d9ed81270a4b6e679e6de983985aa5dbd21614f 100644 (file)
@@ -71,6 +71,7 @@ crypto-caam-fix-signals-handling.patch
 keys-dh-validate-__spare-field.patch
 sched-headers-uapi-fix-linux-sched-types.h-userspace-compilation-errors.patch
 sched-topology-fix-building-of-overlapping-sched-groups.patch
+sched-topology-optimize-build_group_mask.patch
 sched-topology-fix-overlapping-sched_group_mask.patch
 pm-wakeirq-convert-to-srcu.patch
 pstore-fix-leaked-pstore_record-in-pstore_get_backend_records.patch