x86: hardirq: use inc_irq_stat() in non-unified functions
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Fri, 12 Dec 2008 23:52:26 +0000 (15:52 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Dec 2008 21:30:19 +0000 (22:30 +0100)
Impact: cleanup

Replace incrementing irq stat with inc_irq_stat() in non-unified functions.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/mcheck/mce_amd_64.c
arch/x86/kernel/cpu/mcheck/mce_intel_64.c
arch/x86/kernel/time_32.c
arch/x86/kernel/time_64.c
arch/x86/kernel/tlb_32.c
arch/x86/kernel/tlb_64.c

index 5eb390a4b2e9159d980fcfcbc68f8d1d4f42c258..748c8f9e7a0527d1e6f6298852113995f033350b 100644 (file)
@@ -237,7 +237,7 @@ asmlinkage void mce_threshold_interrupt(void)
                }
        }
 out:
-       add_pda(irq_threshold_count, 1);
+       inc_irq_stat(irq_threshold_count);
        irq_exit();
 }
 
index c17eaf5dd6dd4ea820f5057e14f2beb861821ec1..4b48f251fd39ed540f99a2c91b6e7d66d93e1b56 100644 (file)
@@ -26,7 +26,7 @@ asmlinkage void smp_thermal_interrupt(void)
        if (therm_throt_process(msr_val & 1))
                mce_log_therm_throt_event(smp_processor_id(), msr_val);
 
-       add_pda(irq_thermal_count, 1);
+       inc_irq_stat(irq_thermal_count);
        irq_exit();
 }
 
index 77b400f06ea2335fa770fb3273ce5cd7e5820c18..65309e4cb1c0844480efdf3b18e50c46602bc56f 100644 (file)
@@ -75,7 +75,7 @@ EXPORT_SYMBOL(profile_pc);
 irqreturn_t timer_interrupt(int irq, void *dev_id)
 {
        /* Keep nmi watchdog up to date */
-       per_cpu(irq_stat, smp_processor_id()).irq0_irqs++;
+       inc_irq_stat(irq0_irqs);
 
 #ifdef CONFIG_X86_IO_APIC
        if (timer_ack) {
index 418a095c579671eb6ed3eaae01f2a1ca5f07333f..1749cacde8b99b4ec30735e3b822e677cc425fd5 100644 (file)
@@ -51,7 +51,7 @@ EXPORT_SYMBOL(profile_pc);
 
 irqreturn_t timer_interrupt(int irq, void *dev_id)
 {
-       add_pda(irq0_irqs, 1);
+       inc_irq_stat(irq0_irqs);
 
        global_clock_event->event_handler(global_clock_event);
 
index f4049f3513b6b5e01e71523a5490fbedd5db9992..f374f83fca42f79b58393b38f9d68ec6b7a522c5 100644 (file)
@@ -119,7 +119,7 @@ void smp_invalidate_interrupt(struct pt_regs *regs)
        smp_mb__after_clear_bit();
 out:
        put_cpu_no_resched();
-       __get_cpu_var(irq_stat).irq_tlb_count++;
+       inc_irq_stat(irq_tlb_count);
 }
 
 void native_flush_tlb_others(const cpumask_t *cpumaskp, struct mm_struct *mm,
index 8f919ca69494d62541453202b27f4ec13903d2f8..29887d7081a9572557e5ae30f630f8c2a3ab3321 100644 (file)
@@ -154,7 +154,7 @@ asmlinkage void smp_invalidate_interrupt(struct pt_regs *regs)
 out:
        ack_APIC_irq();
        cpu_clear(cpu, f->flush_cpumask);
-       add_pda(irq_tlb_count, 1);
+       inc_irq_stat(irq_tlb_count);
 }
 
 void native_flush_tlb_others(const cpumask_t *cpumaskp, struct mm_struct *mm,