Skip to contentSkip to conversation

genirq: use new tasklet API for resend_tasklet

PATCH Applied Emil Renner Berthing 2 participants 2 messages Jan 23, 2021 – Feb 15, 2021 IRQ

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 genirq: use new tasklet API for resend_tasklet

From: Emil Renner Berthing <[email protected]>

This converts the resend_tasklet to use the new API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API")

The new API changes the argument passed to the callback function, but fortunately the argument isn't used so it is straight forward to use DECLARE_TASKLET() rather than DECLARE_TASKLET_OLD().

---
 kernel/irq/resend.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/irq/resend.c +2 -2
index 8ccd32a0cc80..bd1d85c610aa 100644
@@ -27,7 +27,7 @@ static DECLARE_BITMAP(irqs_resend, IRQ_BITMAP_BITS);
 /*
  * Run software resends of IRQ's
  */
-static void resend_irqs(unsigned long arg)
+static void resend_irqs(struct tasklet_struct *unused)
 {
 	struct irq_desc *desc;
 	int irq;
@@ -45,7 +45,7 @@ static void resend_irqs(unsigned long arg)
 }
 
 /* Tasklet to handle resend: */
-static DECLARE_TASKLET_OLD(resend_tasklet, resend_irqs);
+static DECLARE_TASKLET(resend_tasklet, resend_irqs);
 
 static int irq_sw_resend(struct irq_desc *desc)
 {
Signature · 1 line
2.30.0
#1 lore raw

[tip: irq/core] genirq: Use new tasklet API for resend_tasklet

The following commit has been merged into the irq/core branch of tip:

The following commit has been merged into the irq/core branch of tip:

Commit-ID:     c260954177c4f1926b423823bca5728f19b40d67
Gitweb:        https://git.kernel.org/tip/c260954177c4f1926b423823bca5728f19b40d67
Author:        Emil Renner Berthing <[email protected]>
AuthorDate:    Sat, 23 Jan 2021 19:24:56 +01:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Thu, 28 Jan 2021 11:18:04 +01:00

genirq: Use new tasklet API for resend_tasklet

This converts the resend_tasklet to use the new API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API")

The new API changes the argument passed to the callback function, but fortunately the argument isn't used so it is straight forward to use DECLARE_TASKLET() rather than DECLARE_TASKLET_OLD().

---
 kernel/irq/resend.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/irq/resend.c +2 -2
index 8ccd32a..bd1d85c 100644
@@ -27,7 +27,7 @@ static DECLARE_BITMAP(irqs_resend, IRQ_BITMAP_BITS);
 /*
  * Run software resends of IRQ's
  */
-static void resend_irqs(unsigned long arg)
+static void resend_irqs(struct tasklet_struct *unused)
 {
 	struct irq_desc *desc;
 	int irq;
@@ -45,7 +45,7 @@ static void resend_irqs(unsigned long arg)
 }
 
 /* Tasklet to handle resend: */
-static DECLARE_TASKLET_OLD(resend_tasklet, resend_irqs);
+static DECLARE_TASKLET(resend_tasklet, resend_irqs);
 
 static int irq_sw_resend(struct irq_desc *desc)
 {