Skip to content

Commit 7f92b58

Browse files
Marc ZyngierKAGA-KOKO
authored andcommitted
MIPS: Move IP27 timer to request_percpu_irq()
Teach the SGI IP27 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: Thomas Gleixner <tglx@linutronix.de> Link: https://patch.msgid.link/20251210082242.360936-5-maz@kernel.org
1 parent a1eaca4 commit 7f92b58

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

arch/mips/sgi-ip27/ip27-timer.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ static irqreturn_t hub_rt_counter_handler(int irq, void *dev_id)
5858
return IRQ_HANDLED;
5959
}
6060

61-
struct irqaction hub_rt_irqaction = {
62-
.handler = hub_rt_counter_handler,
63-
.percpu_dev_id = &hub_rt_clockevent,
64-
.flags = IRQF_PERCPU | IRQF_TIMER,
65-
.name = "hub-rt",
66-
};
67-
6861
/*
6962
* This is a hack; we really need to figure these values out dynamically
7063
*
@@ -103,7 +96,8 @@ static void __init hub_rt_clock_event_global_init(void)
10396
{
10497
irq_set_handler(IP27_RT_TIMER_IRQ, handle_percpu_devid_irq);
10598
irq_set_percpu_devid(IP27_RT_TIMER_IRQ);
106-
setup_percpu_irq(IP27_RT_TIMER_IRQ, &hub_rt_irqaction);
99+
WARN_ON(request_percpu_irq(IP27_RT_TIMER_IRQ, hub_rt_counter_handler,
100+
"hub-rt", &hub_rt_clockevent));
107101
}
108102

109103
static u64 hub_rt_read(struct clocksource *cs)

0 commit comments

Comments
 (0)