aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/handle.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-10-01 06:58:38 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-10-04 06:36:26 -0400
commit6b8ff3120c758340505dddf08ad685ebb841d5d5 (patch)
tree794eed27c6f9a8931b8fdf4a7ae60a1560b237fc /kernel/irq/handle.c
parentff7dcd44dd446db2c3e13bdedf2d52b8e0127f16 (diff)
genirq: Convert core code to irq_data
Convert all references in the core code to orq, chip, handler_data, chip_data, msi_desc, affinity to irq_data.* Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r--kernel/irq/handle.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 099d4fc368c3..fc27d76e83ef 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -105,7 +105,7 @@ static void init_one_irq_desc(int irq, struct irq_desc *desc, int node)
105 raw_spin_lock_init(&desc->lock); 105 raw_spin_lock_init(&desc->lock);
106 desc->irq_data.irq = irq; 106 desc->irq_data.irq = irq;
107#ifdef CONFIG_SMP 107#ifdef CONFIG_SMP
108 desc->node = node; 108 desc->irq_data.node = node;
109#endif 109#endif
110 lockdep_set_class(&desc->lock, &irq_desc_lock_class); 110 lockdep_set_class(&desc->lock, &irq_desc_lock_class);
111 init_kstat_irqs(desc, node, nr_cpu_ids); 111 init_kstat_irqs(desc, node, nr_cpu_ids);
@@ -185,7 +185,7 @@ int __init early_irq_init(void)
185 desc[i].irq_data.irq = i; 185 desc[i].irq_data.irq = i;
186 desc[i].irq_data.chip = &no_irq_chip; 186 desc[i].irq_data.chip = &no_irq_chip;
187#ifdef CONFIG_SMP 187#ifdef CONFIG_SMP
188 desc[i].node = node; 188 desc[i].irq_data.node = node;
189#endif 189#endif
190 desc[i].kstat_irqs = kstat_irqs_legacy + i * nr_cpu_ids; 190 desc[i].kstat_irqs = kstat_irqs_legacy + i * nr_cpu_ids;
191 lockdep_set_class(&desc[i].lock, &irq_desc_lock_class); 191 lockdep_set_class(&desc[i].lock, &irq_desc_lock_class);
@@ -456,20 +456,20 @@ unsigned int __do_IRQ(unsigned int irq)
456 /* 456 /*
457 * No locking required for CPU-local interrupts: 457 * No locking required for CPU-local interrupts:
458 */ 458 */
459 if (desc->chip->ack) 459 if (desc->irq_data.chip->ack)
460 desc->chip->ack(irq); 460 desc->irq_data.chip->ack(irq);
461 if (likely(!(desc->status & IRQ_DISABLED))) { 461 if (likely(!(desc->status & IRQ_DISABLED))) {
462 action_ret = handle_IRQ_event(irq, desc->action); 462 action_ret = handle_IRQ_event(irq, desc->action);
463 if (!noirqdebug) 463 if (!noirqdebug)
464 note_interrupt(irq, desc, action_ret); 464 note_interrupt(irq, desc, action_ret);
465 } 465 }
466 desc->chip->end(irq); 466 desc->irq_data.chip->end(irq);
467 return 1; 467 return 1;
468 } 468 }
469 469
470 raw_spin_lock(&desc->lock); 470 raw_spin_lock(&desc->lock);
471 if (desc->chip->ack) 471 if (desc->irq_data.chip->ack)
472 desc->chip->ack(irq); 472 desc->irq_data.chip->ack(irq);
473 /* 473 /*
474 * REPLAY is when Linux resends an IRQ that was dropped earlier 474 * REPLAY is when Linux resends an IRQ that was dropped earlier
475 * WAITING is used by probe to mark irqs that are being tested 475 * WAITING is used by probe to mark irqs that are being tested
@@ -529,7 +529,7 @@ out:
529 * The ->end() handler has to deal with interrupts which got 529 * The ->end() handler has to deal with interrupts which got
530 * disabled while the handler was running. 530 * disabled while the handler was running.
531 */ 531 */
532 desc->chip->end(irq); 532 desc->irq_data.chip->end(irq);
533 raw_spin_unlock(&desc->lock); 533 raw_spin_unlock(&desc->lock);
534 534
535 return 1; 535 return 1;