mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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
This commit is contained in:
parent
694921a93f
commit
a83f9c04be
1 changed files with 2 additions and 8 deletions
|
|
@ -77,13 +77,6 @@ static irqreturn_t gic_compare_interrupt(int irq, void *dev_id)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static struct irqaction gic_compare_irqaction = {
|
||||
.handler = gic_compare_interrupt,
|
||||
.percpu_dev_id = &gic_clockevent_device,
|
||||
.flags = IRQF_PERCPU | IRQF_TIMER,
|
||||
.name = "timer",
|
||||
};
|
||||
|
||||
static void gic_clockevent_cpu_init(unsigned int cpu,
|
||||
struct clock_event_device *cd)
|
||||
{
|
||||
|
|
@ -152,7 +145,8 @@ static int gic_clockevent_init(void)
|
|||
if (!gic_frequency)
|
||||
return -ENXIO;
|
||||
|
||||
ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction);
|
||||
ret = request_percpu_irq(gic_timer_irq, gic_compare_interrupt,
|
||||
"timer", &gic_clockevent_device);
|
||||
if (ret < 0) {
|
||||
pr_err("IRQ %d setup failed (%d)\n", gic_timer_irq, ret);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue