File tree Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change 129
129
130
130
extern void show_registers (struct pt_regs * );
131
131
132
- irqreturn_t mac_nmi_handler (int , void * );
133
-
134
132
static unsigned int mac_irq_startup (struct irq_data * );
135
133
static void mac_irq_shutdown (struct irq_data * );
136
134
@@ -142,6 +140,21 @@ static struct irq_chip mac_irq_chip = {
142
140
.irq_shutdown = mac_irq_shutdown ,
143
141
};
144
142
143
+ static irqreturn_t mac_nmi_handler (int irq , void * dev_id )
144
+ {
145
+ static volatile int in_nmi ;
146
+
147
+ if (in_nmi )
148
+ return IRQ_HANDLED ;
149
+ in_nmi = 1 ;
150
+
151
+ pr_info ("Non-Maskable Interrupt\n" );
152
+ show_registers (get_irq_regs ());
153
+
154
+ in_nmi = 0 ;
155
+ return IRQ_HANDLED ;
156
+ }
157
+
145
158
void __init mac_init_IRQ (void )
146
159
{
147
160
m68k_setup_irq_controller (& mac_irq_chip , handle_simple_irq , IRQ_USER ,
@@ -254,18 +267,3 @@ static void mac_irq_shutdown(struct irq_data *data)
254
267
else
255
268
mac_irq_disable (data );
256
269
}
257
-
258
- static volatile int in_nmi ;
259
-
260
- irqreturn_t mac_nmi_handler (int irq , void * dev_id )
261
- {
262
- if (in_nmi )
263
- return IRQ_HANDLED ;
264
- in_nmi = 1 ;
265
-
266
- pr_info ("Non-Maskable Interrupt\n" );
267
- show_registers (get_irq_regs ());
268
-
269
- in_nmi = 0 ;
270
- return IRQ_HANDLED ;
271
- }
You can’t perform that action at this time.
0 commit comments