mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
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
This commit is contained in:
parent
a1eaca410a
commit
7f92b58338
1 changed files with 2 additions and 8 deletions
|
|
@ -58,13 +58,6 @@ static irqreturn_t hub_rt_counter_handler(int irq, void *dev_id)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
struct irqaction hub_rt_irqaction = {
|
||||
.handler = hub_rt_counter_handler,
|
||||
.percpu_dev_id = &hub_rt_clockevent,
|
||||
.flags = IRQF_PERCPU | IRQF_TIMER,
|
||||
.name = "hub-rt",
|
||||
};
|
||||
|
||||
/*
|
||||
* This is a hack; we really need to figure these values out dynamically
|
||||
*
|
||||
|
|
@ -103,7 +96,8 @@ static void __init hub_rt_clock_event_global_init(void)
|
|||
{
|
||||
irq_set_handler(IP27_RT_TIMER_IRQ, handle_percpu_devid_irq);
|
||||
irq_set_percpu_devid(IP27_RT_TIMER_IRQ);
|
||||
setup_percpu_irq(IP27_RT_TIMER_IRQ, &hub_rt_irqaction);
|
||||
WARN_ON(request_percpu_irq(IP27_RT_TIMER_IRQ, hub_rt_counter_handler,
|
||||
"hub-rt", &hub_rt_clockevent));
|
||||
}
|
||||
|
||||
static u64 hub_rt_read(struct clocksource *cs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue