summaryrefslogtreecommitdiff
path: root/kernel/irq/resend.c
diff options
context:
space:
mode:
authorEmil Renner Berthing <kernel@esmil.dk>2021-01-23 19:24:56 +0100
committerThomas Gleixner <tglx@linutronix.de>2021-01-28 11:18:04 +0100
commitc260954177c4f1926b423823bca5728f19b40d67 (patch)
treef44f55d504f78a6ac561866fa04935b00f4edbe6 /kernel/irq/resend.c
parent6ee1d745b7c9fd573fba142a2efdad76a9f1cb04 (diff)
downloadlwn-c260954177c4f1926b423823bca5728f19b40d67.tar.gz
lwn-c260954177c4f1926b423823bca5728f19b40d67.zip
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(). Signed-off-by: Emil Renner Berthing <kernel@esmil.dk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20210123182456.6521-1-esmil@mailme.dk
Diffstat (limited to 'kernel/irq/resend.c')
-rw-r--r--kernel/irq/resend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c
index 8ccd32a0cc80..bd1d85c610aa 100644
--- a/kernel/irq/resend.c
+++ b/kernel/irq/resend.c
@@ -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)
{