irq fix for 4.11
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(-)
kernel/irq/affinity.c +1 -1
@@ -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));