mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
MIPS: Move IP30 timer to request_percpu_irq()
Teach the SGI IP30 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-4-maz@kernel.org
This commit is contained in:
parent
e9b624ea31
commit
a1eaca410a
3 changed files with 2 additions and 15 deletions
|
|
@ -23,7 +23,6 @@ void mips_event_handler(struct clock_event_device *dev);
|
|||
int c0_compare_int_usable(void);
|
||||
irqreturn_t c0_compare_interrupt(int, void *);
|
||||
|
||||
extern struct irqaction c0_compare_irqaction;
|
||||
extern int cp0_timer_irq_installed;
|
||||
|
||||
#endif /* __ASM_CEVT_R4K_H */
|
||||
|
|
|
|||
|
|
@ -159,17 +159,6 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id)
|
|||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
struct irqaction c0_compare_irqaction = {
|
||||
.handler = c0_compare_interrupt,
|
||||
/*
|
||||
* IRQF_SHARED: The timer interrupt may be shared with other interrupts
|
||||
* such as perf counter and FDC interrupts.
|
||||
*/
|
||||
.flags = IRQF_PERCPU | IRQF_TIMER | IRQF_SHARED,
|
||||
.name = "timer",
|
||||
};
|
||||
|
||||
|
||||
void mips_event_handler(struct clock_event_device *dev)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,11 +52,10 @@ void __init plat_time_init(void)
|
|||
int irq = get_c0_compare_int();
|
||||
|
||||
cp0_timer_irq_installed = 1;
|
||||
c0_compare_irqaction.percpu_dev_id = &mips_clockevent_device;
|
||||
c0_compare_irqaction.flags &= ~IRQF_SHARED;
|
||||
irq_set_handler(irq, handle_percpu_devid_irq);
|
||||
irq_set_percpu_devid(irq);
|
||||
setup_percpu_irq(irq, &c0_compare_irqaction);
|
||||
WARN_ON(request_percpu_irq(irq, c0_compare_interrupt,
|
||||
"timer", &mips_clockevent_device));
|
||||
enable_percpu_irq(irq, IRQ_TYPE_NONE);
|
||||
|
||||
ip30_heart_clocksource_init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue