diff options
| author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-12-12 18:52:26 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-12-16 16:30:19 -0500 |
| commit | 8ae936690972dfcad73d0dde1095b9f32af5ee95 (patch) | |
| tree | fa4f81646cdef3f9f0bd1f86a2dc64c045b23540 | |
| parent | 915b0d0104b72fd36af088ba4b11b5690bc96a6c (diff) | |
x86: hardirq: use inc_irq_stat() in non-unified functions
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>
| -rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_amd_64.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_intel_64.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/time_32.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/time_64.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/tlb_32.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/tlb_64.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd_64.c b/arch/x86/kernel/cpu/mcheck/mce_amd_64.c index 5eb390a4b2e9..748c8f9e7a05 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_amd_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_amd_64.c | |||
| @@ -237,7 +237,7 @@ asmlinkage void mce_threshold_interrupt(void) | |||
| 237 | } | 237 | } |
| 238 | } | 238 | } |
| 239 | out: | 239 | out: |
| 240 | add_pda(irq_threshold_count, 1); | 240 | inc_irq_stat(irq_threshold_count); |
| 241 | irq_exit(); | 241 | irq_exit(); |
| 242 | } | 242 | } |
| 243 | 243 | ||
diff --git a/arch/x86/kernel/cpu/mcheck/mce_intel_64.c b/arch/x86/kernel/cpu/mcheck/mce_intel_64.c index c17eaf5dd6dd..4b48f251fd39 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_intel_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_intel_64.c | |||
| @@ -26,7 +26,7 @@ asmlinkage void smp_thermal_interrupt(void) | |||
| 26 | if (therm_throt_process(msr_val & 1)) | 26 | if (therm_throt_process(msr_val & 1)) |
| 27 | mce_log_therm_throt_event(smp_processor_id(), msr_val); | 27 | mce_log_therm_throt_event(smp_processor_id(), msr_val); |
| 28 | 28 | ||
| 29 | add_pda(irq_thermal_count, 1); | 29 | inc_irq_stat(irq_thermal_count); |
| 30 | irq_exit(); | 30 | irq_exit(); |
| 31 | } | 31 | } |
| 32 | 32 | ||
diff --git a/arch/x86/kernel/time_32.c b/arch/x86/kernel/time_32.c index 77b400f06ea2..65309e4cb1c0 100644 --- a/arch/x86/kernel/time_32.c +++ b/arch/x86/kernel/time_32.c | |||
| @@ -75,7 +75,7 @@ EXPORT_SYMBOL(profile_pc); | |||
| 75 | irqreturn_t timer_interrupt(int irq, void *dev_id) | 75 | irqreturn_t timer_interrupt(int irq, void *dev_id) |
| 76 | { | 76 | { |
| 77 | /* Keep nmi watchdog up to date */ | 77 | /* Keep nmi watchdog up to date */ |
| 78 | per_cpu(irq_stat, smp_processor_id()).irq0_irqs++; | 78 | inc_irq_stat(irq0_irqs); |
| 79 | 79 | ||
| 80 | #ifdef CONFIG_X86_IO_APIC | 80 | #ifdef CONFIG_X86_IO_APIC |
| 81 | if (timer_ack) { | 81 | if (timer_ack) { |
diff --git a/arch/x86/kernel/time_64.c b/arch/x86/kernel/time_64.c index 418a095c5796..1749cacde8b9 100644 --- a/arch/x86/kernel/time_64.c +++ b/arch/x86/kernel/time_64.c | |||
| @@ -51,7 +51,7 @@ EXPORT_SYMBOL(profile_pc); | |||
| 51 | 51 | ||
| 52 | irqreturn_t timer_interrupt(int irq, void *dev_id) | 52 | irqreturn_t timer_interrupt(int irq, void *dev_id) |
| 53 | { | 53 | { |
| 54 | add_pda(irq0_irqs, 1); | 54 | inc_irq_stat(irq0_irqs); |
| 55 | 55 | ||
| 56 | global_clock_event->event_handler(global_clock_event); | 56 | global_clock_event->event_handler(global_clock_event); |
| 57 | 57 | ||
diff --git a/arch/x86/kernel/tlb_32.c b/arch/x86/kernel/tlb_32.c index f4049f3513b6..f374f83fca42 100644 --- a/arch/x86/kernel/tlb_32.c +++ b/arch/x86/kernel/tlb_32.c | |||
| @@ -119,7 +119,7 @@ void smp_invalidate_interrupt(struct pt_regs *regs) | |||
| 119 | smp_mb__after_clear_bit(); | 119 | smp_mb__after_clear_bit(); |
| 120 | out: | 120 | out: |
| 121 | put_cpu_no_resched(); | 121 | put_cpu_no_resched(); |
| 122 | __get_cpu_var(irq_stat).irq_tlb_count++; | 122 | inc_irq_stat(irq_tlb_count); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | void native_flush_tlb_others(const cpumask_t *cpumaskp, struct mm_struct *mm, | 125 | void native_flush_tlb_others(const cpumask_t *cpumaskp, struct mm_struct *mm, |
diff --git a/arch/x86/kernel/tlb_64.c b/arch/x86/kernel/tlb_64.c index 8f919ca69494..29887d7081a9 100644 --- a/arch/x86/kernel/tlb_64.c +++ b/arch/x86/kernel/tlb_64.c | |||
| @@ -154,7 +154,7 @@ asmlinkage void smp_invalidate_interrupt(struct pt_regs *regs) | |||
| 154 | out: | 154 | out: |
| 155 | ack_APIC_irq(); | 155 | ack_APIC_irq(); |
| 156 | cpu_clear(cpu, f->flush_cpumask); | 156 | cpu_clear(cpu, f->flush_cpumask); |
| 157 | add_pda(irq_tlb_count, 1); | 157 | inc_irq_stat(irq_tlb_count); |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | void native_flush_tlb_others(const cpumask_t *cpumaskp, struct mm_struct *mm, | 160 | void native_flush_tlb_others(const cpumask_t *cpumaskp, struct mm_struct *mm, |
