forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/mips/jazz/irq.c
....@@ -14,12 +14,12 @@
1414 #include <linux/smp.h>
1515 #include <linux/spinlock.h>
1616 #include <linux/irq.h>
17
+#include <linux/pgtable.h>
1718
1819 #include <asm/irq_cpu.h>
1920 #include <asm/i8259.h>
2021 #include <asm/io.h>
2122 #include <asm/jazz.h>
22
-#include <asm/pgtable.h>
2323 #include <asm/tlbmisc.h>
2424
2525 static DEFINE_RAW_SPINLOCK(r4030_lock);
....@@ -125,24 +125,18 @@
125125 return IRQ_HANDLED;
126126 }
127127
128
-static struct irqaction r4030_timer_irqaction = {
129
- .handler = r4030_timer_interrupt,
130
- .flags = IRQF_TIMER,
131
- .name = "R4030 timer",
132
-};
133
-
134128 void __init plat_time_init(void)
135129 {
136130 struct clock_event_device *cd = &r4030_clockevent;
137
- struct irqaction *action = &r4030_timer_irqaction;
138131 unsigned int cpu = smp_processor_id();
139132
140133 BUG_ON(HZ != 100);
141134
142135 cd->cpumask = cpumask_of(cpu);
143136 clockevents_register_device(cd);
144
- action->dev_id = cd;
145
- setup_irq(JAZZ_TIMER_IRQ, action);
137
+ if (request_irq(JAZZ_TIMER_IRQ, r4030_timer_interrupt, IRQF_TIMER,
138
+ "R4030 timer", cd))
139
+ pr_err("Failed to register R4030 timer interrupt\n");
146140
147141 /*
148142 * Set clock to 100Hz.