+1
-1
kernel/irq/affinity.c
+1
-1
kernel/irq/affinity.c
···
98
98
int ncpus, v, vecs_to_assign, vecs_per_node;
99
99
100
100
/* Spread the vectors per node */
101
-
vecs_per_node = (affv - curvec) / nodes;
101
+
vecs_per_node = (affv - (curvec - affd->pre_vectors)) / nodes;
102
102
103
103
/* Get the cpus on this node which are in the mask */
104
104
cpumask_and(nmsk, cpu_online_mask, cpumask_of_node(n));