Skip to content

Commit a83f9c0

Browse files
Marc Zyngierdlezcano
authored andcommitted
clocksource/drivers/mips-gic-timer: Move GIC timer to request_percpu_irq()
Teach the MIPS GIC timer about request_percpu_irq(), which ultimately will allow for the removal of the antiquated setup_percpu_irq() API. Signed-off-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://patch.msgid.link/20251210082242.360936-6-maz@kernel.org
1 parent 694921a commit a83f9c0

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

drivers/clocksource/mips-gic-timer.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,6 @@ static irqreturn_t gic_compare_interrupt(int irq, void *dev_id)
7777
return IRQ_HANDLED;
7878
}
7979

80-
static struct irqaction gic_compare_irqaction = {
81-
.handler = gic_compare_interrupt,
82-
.percpu_dev_id = &gic_clockevent_device,
83-
.flags = IRQF_PERCPU | IRQF_TIMER,
84-
.name = "timer",
85-
};
86-
8780
static void gic_clockevent_cpu_init(unsigned int cpu,
8881
struct clock_event_device *cd)
8982
{
@@ -152,7 +145,8 @@ static int gic_clockevent_init(void)
152145
if (!gic_frequency)
153146
return -ENXIO;
154147

155-
ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction);
148+
ret = request_percpu_irq(gic_timer_irq, gic_compare_interrupt,
149+
"timer", &gic_clockevent_device);
156150
if (ret < 0) {
157151
pr_err("IRQ %d setup failed (%d)\n", gic_timer_irq, ret);
158152
return ret;

0 commit comments

Comments
 (0)