[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <176061934181.709179.16551803303432704592.tip-bot2@tip-bot2>
Date: Thu, 16 Oct 2025 12:55:41 -0000
From: "tip-bot2 for Samuel Holland" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Samuel Holland <samuel.holland@...ive.com>,
Thomas Gleixner <tglx@...utronix.de>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject:
[tip: irq/drivers] irqchip/riscv-imsic: Remove redundant irq_data lookups
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: bbec970f417aa9796d6b36b60b5fc5df09ce5904
Gitweb: https://git.kernel.org/tip/bbec970f417aa9796d6b36b60b5fc5df09ce5904
Author: Samuel Holland <samuel.holland@...ive.com>
AuthorDate: Wed, 15 Oct 2025 12:55:12 -07:00
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Thu, 16 Oct 2025 13:12:50 +02:00
irqchip/riscv-imsic: Remove redundant irq_data lookups
imsic_irq_set_affinity() already takes the irq_data pointer as a
parameter, so it is pointless to look it up again from the IRQ number.
Signed-off-by: Samuel Holland <samuel.holland@...ive.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
---
drivers/irqchip/irq-riscv-imsic-platform.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-riscv-imsic-platform.c b/drivers/irqchip/irq-riscv-imsic-platform.c
index 643c8e4..7228a33 100644
--- a/drivers/irqchip/irq-riscv-imsic-platform.c
+++ b/drivers/irqchip/irq-riscv-imsic-platform.c
@@ -158,11 +158,11 @@ static int imsic_irq_set_affinity(struct irq_data *d, const struct cpumask *mask
tmp_vec.local_id = new_vec->local_id;
/* Point device to the temporary vector */
- imsic_msi_update_msg(irq_get_irq_data(d->irq), &tmp_vec);
+ imsic_msi_update_msg(d, &tmp_vec);
}
/* Point device to the new vector */
- imsic_msi_update_msg(irq_get_irq_data(d->irq), new_vec);
+ imsic_msi_update_msg(d, new_vec);
/* Update irq descriptors with the new vector */
d->chip_data = new_vec;
Powered by blists - more mailing lists