Skip to content

Commit fa8d7cd

Browse files
committed
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq fix from Thomas Gleixner: "The (hopefully) final fix for the irq affinity spreading logic" * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: genirq/affinity: Fix calculating vectors to assign
2 parents 94836ec + b72f805 commit fa8d7cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/irq/affinity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd)
9898
int ncpus, v, vecs_to_assign, vecs_per_node;
9999

100100
/* Spread the vectors per node */
101-
vecs_per_node = (affv - curvec) / nodes;
101+
vecs_per_node = (affv - (curvec - affd->pre_vectors)) / nodes;
102102

103103
/* Get the cpus on this node which are in the mask */
104104
cpumask_and(nmsk, cpu_online_mask, cpumask_of_node(n));

0 commit comments

Comments
 (0)