Commit b6e5d5b9 authored by Thomas Gleixner's avatar Thomas Gleixner

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: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Christoph Hellwig <hch@lst.de>
parent bfe13077
...@@ -75,7 +75,7 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd) ...@@ -75,7 +75,7 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd)
/* Fill out vectors at the beginning that don't need affinity */ /* Fill out vectors at the beginning that don't need affinity */
for (curvec = 0; curvec < affd->pre_vectors; curvec++) for (curvec = 0; curvec < affd->pre_vectors; curvec++)
cpumask_copy(masks + curvec, cpu_possible_mask); cpumask_copy(masks + curvec, irq_default_affinity);
/* Stabilize the cpumasks */ /* Stabilize the cpumasks */
get_online_cpus(); get_online_cpus();
...@@ -130,7 +130,7 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd) ...@@ -130,7 +130,7 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd)
/* Fill out vectors at the end that don't need affinity */ /* Fill out vectors at the end that don't need affinity */
for (; curvec < nvecs; curvec++) for (; curvec < nvecs; curvec++)
cpumask_copy(masks + curvec, cpu_possible_mask); cpumask_copy(masks + curvec, irq_default_affinity);
out: out:
free_cpumask_var(nmsk); free_cpumask_var(nmsk);
return masks; return masks;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment