Skip to content

Commit 3611587

Browse files
committed
ia64: Use the core irq stats function
Let the core do the irq_desc resolution. No functional change. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Tony Luck <[email protected]> Cc: Fenghua Yu <[email protected]> Cc: ia64 <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent bc5dfcf commit 3611587

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

arch/ia64/kernel/irq_ia64.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,13 @@ ia64_handle_irq (ia64_vector vector, struct pt_regs *regs)
489489
ia64_srlz_d();
490490
while (vector != IA64_SPURIOUS_INT_VECTOR) {
491491
int irq = local_vector_to_irq(vector);
492-
struct irq_desc *desc = irq_to_desc(irq);
493492

494493
if (unlikely(IS_LOCAL_TLB_FLUSH(vector))) {
495494
smp_local_flush_tlb();
496-
kstat_incr_irqs_this_cpu(irq, desc);
495+
kstat_incr_irq_this_cpu(irq);
497496
} else if (unlikely(IS_RESCHEDULE(vector))) {
498497
scheduler_ipi();
499-
kstat_incr_irqs_this_cpu(irq, desc);
498+
kstat_incr_irq_this_cpu(irq);
500499
} else {
501500
ia64_setreg(_IA64_REG_CR_TPR, vector);
502501
ia64_srlz_d();
@@ -549,13 +548,12 @@ void ia64_process_pending_intr(void)
549548
*/
550549
while (vector != IA64_SPURIOUS_INT_VECTOR) {
551550
int irq = local_vector_to_irq(vector);
552-
struct irq_desc *desc = irq_to_desc(irq);
553551

554552
if (unlikely(IS_LOCAL_TLB_FLUSH(vector))) {
555553
smp_local_flush_tlb();
556-
kstat_incr_irqs_this_cpu(irq, desc);
554+
kstat_incr_irq_this_cpu(irq);
557555
} else if (unlikely(IS_RESCHEDULE(vector))) {
558-
kstat_incr_irqs_this_cpu(irq, desc);
556+
kstat_incr_irq_this_cpu(irq);
559557
} else {
560558
struct pt_regs *old_regs = set_irq_regs(NULL);
561559

0 commit comments

Comments
 (0)