Skip to content

Commit b6e5d5b

Browse files
committed
genirq/affinity: Use default affinity mask for reserved vectors
The reserved vectors at the beginning and the end of the vector space get cpu_possible_mask assigned as their affinity mask. All other non-auto affine interrupts get the default irq affinity mask assigned. Using cpu_possible_mask breaks that rule. Treat them like any other interrupt and use irq_default_affinity as target mask. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Christoph Hellwig <hch@lst.de>
1 parent bfe1307 commit b6e5d5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/irq/affinity.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd)
7575

7676
/* Fill out vectors at the beginning that don't need affinity */
7777
for (curvec = 0; curvec < affd->pre_vectors; curvec++)
78-
cpumask_copy(masks + curvec, cpu_possible_mask);
78+
cpumask_copy(masks + curvec, irq_default_affinity);
7979

8080
/* Stabilize the cpumasks */
8181
get_online_cpus();
@@ -130,7 +130,7 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd)
130130

131131
/* Fill out vectors at the end that don't need affinity */
132132
for (; curvec < nvecs; curvec++)
133-
cpumask_copy(masks + curvec, cpu_possible_mask);
133+
cpumask_copy(masks + curvec, irq_default_affinity);
134134
out:
135135
free_cpumask_var(nmsk);
136136
return masks;

0 commit comments

Comments
 (0)