Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1629003 > unrolled thread

[GIT pull] irq fix for 4.11

Started byThomas Gleixner <tglx@linutronix.de>
First post2017-04-23 13:50 +0200
Last post2017-04-23 13:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [GIT pull] irq fix for 4.11 Thomas Gleixner <tglx@linutronix.de> - 2017-04-23 13:50 +0200

#1629003 — [GIT pull] irq fix for 4.11

FromThomas Gleixner <tglx@linutronix.de>
Date2017-04-23 13:50 +0200
Subject[GIT pull] irq fix for 4.11
Message-ID<tzobD-7Vy-1@gated-at.bofh.it>
Linus,

please pull the latest irq-urgent-for-linus git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus

The (hopefully) final fix for the irq affinity spreading logic.

Thanks,

	tglx

------------------>
Keith Busch (1):
      genirq/affinity: Fix calculating vectors to assign


 kernel/irq/affinity.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/irq/affinity.c b/kernel/irq/affinity.c
index d052947fe785..e2d356dd7581 100644
--- a/kernel/irq/affinity.c
+++ b/kernel/irq/affinity.c
@@ -98,7 +98,7 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd)
 		int ncpus, v, vecs_to_assign, vecs_per_node;
 
 		/* Spread the vectors per node */
-		vecs_per_node = (affv - curvec) / nodes;
+		vecs_per_node = (affv - (curvec - affd->pre_vectors)) / nodes;
 
 		/* Get the cpus on this node which are in the mask */
 		cpumask_and(nmsk, cpu_online_mask, cpumask_of_node(n));

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web