aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-28 07:47:54 -0400
committerThomas Gleixner <tglx@linutronix.de>2011-03-29 08:48:08 -0400
commit68f20f43dae770bdb3d93cfb8fbe9679d3568c3b (patch)
treeaf6464b0ece287a5f59f9802cf0750bfce44c4c7 /arch
parente2f571d294cc5f944539088bed46abae375b75f6 (diff)
parisc: Use irq_to_desc() in show_interrupts()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/kernel/irq.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/parisc/kernel/irq.c b/arch/parisc/kernel/irq.c
index 3d59d52a5dd6..c0b1affc06a8 100644
--- a/arch/parisc/kernel/irq.c
+++ b/arch/parisc/kernel/irq.c
@@ -169,10 +169,11 @@ int show_interrupts(struct seq_file *p, void *v)
169 } 169 }
170 170
171 if (i < NR_IRQS) { 171 if (i < NR_IRQS) {
172 struct irq_desc *desc = irq_to_desc(i);
172 struct irqaction *action; 173 struct irqaction *action;
173 174
174 raw_spin_lock_irqsave(&irq_desc[i].lock, flags); 175 raw_spin_lock_irqsave(&desc->lock, flags);
175 action = irq_desc[i].action; 176 action = desc->action;
176 if (!action) 177 if (!action)
177 goto skip; 178 goto skip;
178 seq_printf(p, "%3d: ", i); 179 seq_printf(p, "%3d: ", i);
@@ -183,7 +184,7 @@ int show_interrupts(struct seq_file *p, void *v)
183 seq_printf(p, "%10u ", kstat_irqs(i)); 184 seq_printf(p, "%10u ", kstat_irqs(i));
184#endif 185#endif
185 186
186 seq_printf(p, " %14s", irq_desc[i].irq_data.chip->name); 187 seq_printf(p, " %14s", irq_desc_get_chip(desc)->name);
187#ifndef PARISC_IRQ_CR16_COUNTS 188#ifndef PARISC_IRQ_CR16_COUNTS
188 seq_printf(p, " %s", action->name); 189 seq_printf(p, " %s", action->name);
189 190
@@ -215,7 +216,7 @@ int show_interrupts(struct seq_file *p, void *v)
215 216
216 seq_putc(p, '\n'); 217 seq_putc(p, '\n');
217 skip: 218 skip:
218 raw_spin_unlock_irqrestore(&irq_desc[i].lock, flags); 219 raw_spin_unlock_irqrestore(&desc->lock, flags);
219 } 220 }
220 221
221 return 0; 222 return 0;
@@ -233,7 +234,7 @@ int show_interrupts(struct seq_file *p, void *v)
233 234
234int cpu_claim_irq(unsigned int irq, struct irq_chip *type, void *data) 235int cpu_claim_irq(unsigned int irq, struct irq_chip *type, void *data)
235{ 236{
236 if (irq_desc[irq].action) 237 if (irq_has_action(irq))
237 return -EBUSY; 238 return -EBUSY;
238 if (irq_get_chip(irq) != &cpu_interrupt_type) 239 if (irq_get_chip(irq) != &cpu_interrupt_type)
239 return -EBUSY; 240 return -EBUSY;