Skip to content

Commit

Permalink
genirq: Use new tasklet API for resend_tasklet
Browse files Browse the repository at this point in the history
This converts the resend_tasklet to use the new API in
commit 12cc923 ("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
  • Loading branch information
Emil Renner Berthing authored and Thomas Gleixner committed Jan 28, 2021
1 parent 6ee1d74 commit c260954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/irq/resend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
{
Expand Down

0 comments on commit c260954

Please sign in to comment.