Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148934
b: refs/heads/master
c: 8051dbd
h: refs/heads/master
v: v3
  • Loading branch information
Hidetoshi Seto authored and H. Peter Anvin committed Jun 3, 2009
1 parent 7920cac commit 1e9d24d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b1beaf2b551a8a1604f104025b24e9c535c8963
refs/heads/master: 8051dbd2dfd1427cc102888d7d96bf39de0be150
9 changes: 5 additions & 4 deletions trunk/arch/x86/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static int show_other_interrupts(struct seq_file *p, int prec)
seq_printf(p, " Threshold APIC interrupts\n");
# endif
#endif
#if defined(CONFIG_X86_MCE) && defined(CONFIG_X86_64)
#ifdef CONFIG_X86_NEW_MCE
seq_printf(p, "%*s: ", prec, "MCE");
for_each_online_cpu(j)
seq_printf(p, "%10u ", per_cpu(mce_exception_count, j));
Expand Down Expand Up @@ -172,9 +172,6 @@ u64 arch_irq_stat_cpu(unsigned int cpu)
{
u64 sum = irq_stats(cpu)->__nmi_count;

#if defined(CONFIG_X86_MCE) && defined(CONFIG_X86_64)
sum += per_cpu(mce_exception_count, cpu);
#endif
#ifdef CONFIG_X86_LOCAL_APIC
sum += irq_stats(cpu)->apic_timer_irqs;
sum += irq_stats(cpu)->irq_spurious_count;
Expand All @@ -191,6 +188,10 @@ u64 arch_irq_stat_cpu(unsigned int cpu)
# ifdef CONFIG_X86_MCE_THRESHOLD
sum += irq_stats(cpu)->irq_threshold_count;
# endif
#endif
#ifdef CONFIG_X86_NEW_MCE
sum += per_cpu(mce_exception_count, cpu);
sum += per_cpu(mce_poll_count, cpu);
#endif
return sum;
}
Expand Down

0 comments on commit 1e9d24d

Please sign in to comment.