aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/chip.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-10-15 09:27:23 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:53:15 -0400
commitd6c88a507ef0b6afdb013cba4e7804ba7324d99a (patch)
treecdc4041acc212585e3920ad50bf2574cec04076d /kernel/irq/chip.c
parentee32c9732244bde4b9b59eeac2814c23e2b71f8d (diff)
genirq: revert dynarray
Revert the dynarray changes. They need more thought and polishing. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r--kernel/irq/chip.c30
1 files changed, 5 insertions, 25 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index e6f73dbfcc3d..d96d6f687c48 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -326,11 +326,7 @@ handle_simple_irq(unsigned int irq, struct irq_desc *desc)
326 if (unlikely(desc->status & IRQ_INPROGRESS)) 326 if (unlikely(desc->status & IRQ_INPROGRESS))
327 goto out_unlock; 327 goto out_unlock;
328 desc->status &= ~(IRQ_REPLAY | IRQ_WAITING); 328 desc->status &= ~(IRQ_REPLAY | IRQ_WAITING);
329#ifdef CONFIG_HAVE_DYN_ARRAY 329 kstat_incr_irqs_this_cpu(irq, desc);
330 kstat_irqs_this_cpu(desc)++;
331#else
332 kstat_irqs_this_cpu(irq)++;
333#endif
334 330
335 action = desc->action; 331 action = desc->action;
336 if (unlikely(!action || (desc->status & IRQ_DISABLED))) 332 if (unlikely(!action || (desc->status & IRQ_DISABLED)))
@@ -371,11 +367,7 @@ handle_level_irq(unsigned int irq, struct irq_desc *desc)
371 if (unlikely(desc->status & IRQ_INPROGRESS)) 367 if (unlikely(desc->status & IRQ_INPROGRESS))
372 goto out_unlock; 368 goto out_unlock;
373 desc->status &= ~(IRQ_REPLAY | IRQ_WAITING); 369 desc->status &= ~(IRQ_REPLAY | IRQ_WAITING);
374#ifdef CONFIG_HAVE_DYN_ARRAY 370 kstat_incr_irqs_this_cpu(irq, desc);
375 kstat_irqs_this_cpu(desc)++;
376#else
377 kstat_irqs_this_cpu(irq)++;
378#endif
379 371
380 /* 372 /*
381 * If its disabled or no action available 373 * If its disabled or no action available
@@ -422,11 +414,7 @@ handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc)
422 goto out; 414 goto out;
423 415
424 desc->status &= ~(IRQ_REPLAY | IRQ_WAITING); 416 desc->status &= ~(IRQ_REPLAY | IRQ_WAITING);
425#ifdef CONFIG_HAVE_DYN_ARRAY 417 kstat_incr_irqs_this_cpu(irq, desc);
426 kstat_irqs_this_cpu(desc)++;
427#else
428 kstat_irqs_this_cpu(irq)++;
429#endif
430 418
431 /* 419 /*
432 * If its disabled or no action available 420 * If its disabled or no action available
@@ -490,11 +478,7 @@ handle_edge_irq(unsigned int irq, struct irq_desc *desc)
490 mask_ack_irq(desc, irq); 478 mask_ack_irq(desc, irq);
491 goto out_unlock; 479 goto out_unlock;
492 } 480 }
493#ifdef CONFIG_HAVE_DYN_ARRAY 481 kstat_incr_irqs_this_cpu(irq, desc);
494 kstat_irqs_this_cpu(desc)++;
495#else
496 kstat_irqs_this_cpu(irq)++;
497#endif
498 482
499 /* Start handling the irq */ 483 /* Start handling the irq */
500 desc->chip->ack(irq); 484 desc->chip->ack(irq);
@@ -549,11 +533,7 @@ handle_percpu_irq(unsigned int irq, struct irq_desc *desc)
549{ 533{
550 irqreturn_t action_ret; 534 irqreturn_t action_ret;
551 535
552#ifdef CONFIG_HAVE_DYN_ARRAY 536 kstat_incr_irqs_this_cpu(irq, desc);
553 kstat_irqs_this_cpu(desc)++;
554#else
555 kstat_irqs_this_cpu(irq)++;
556#endif
557 537
558 if (desc->chip->ack) 538 if (desc->chip->ack)
559 desc->chip->ack(irq); 539 desc->chip->ack(irq);