[PATCH 1/2] genirq/affinity: remove rsvd check against minvec

From: Keith Busch
Date: Fri May 10 2024 - 10:15:41 EST


From: Keith Busch <kbusch@xxxxxxxxxx>

The reserved vectors are just the desired vectors that don't need to be
managed.

Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx>
---
kernel/irq/affinity.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/kernel/irq/affinity.c b/kernel/irq/affinity.c
index 44a4eba80315c..74b7cccb51a16 100644
--- a/kernel/irq/affinity.c
+++ b/kernel/irq/affinity.c
@@ -113,9 +113,6 @@ unsigned int irq_calc_affinity_vectors(unsigned int minvec, unsigned int maxvec,
unsigned int resv = affd->pre_vectors + affd->post_vectors;
unsigned int set_vecs;

- if (resv > minvec)
- return 0;
-
if (affd->calc_sets) {
set_vecs = maxvec - resv;
} else {
--
2.43.0