* [PATCH] genirq: use new tasklet API for resend_tasklet
@ 2021-01-23 18:24 Emil Renner Berthing
2021-02-15 14:55 ` [tip: irq/core] genirq: Use " tip-bot2 for Emil Renner Berthing
0 siblings, 1 reply; 2+ messages in thread
From: Emil Renner Berthing @ 2021-01-23 18:24 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: Emil Renner Berthing, Marc Zyngier, linux-kernel
From: Emil Renner Berthing <kernel@esmil.dk>
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>
---
kernel/irq/resend.c | 4 ++--
1 file 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)
{
--
2.30.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip: irq/core] genirq: Use new tasklet API for resend_tasklet
2021-01-23 18:24 [PATCH] genirq: use new tasklet API for resend_tasklet Emil Renner Berthing
@ 2021-02-15 14:55 ` tip-bot2 for Emil Renner Berthing
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Emil Renner Berthing @ 2021-02-15 14:55 UTC (permalink / raw)
To: linux-tip-commits
Cc: Emil Renner Berthing, Thomas Gleixner, x86, linux-kernel, maz
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 <kernel@esmil.dk>
AuthorDate: Sat, 23 Jan 2021 19:24:56 +01:00
Committer: Thomas Gleixner <tglx@linutronix.de>
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().
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
---
kernel/irq/resend.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c
index 8ccd32a..bd1d85c 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)
{
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-15 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-23 18:24 [PATCH] genirq: use new tasklet API for resend_tasklet Emil Renner Berthing
2021-02-15 14:55 ` [tip: irq/core] genirq: Use " tip-bot2 for Emil Renner Berthing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).