aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irq.c
diff options
context:
space:
mode:
authorLi Fei <fei.li@intel.com>2013-04-26 08:50:11 -0400
committerIngo Molnar <mingo@kernel.org>2013-04-30 04:56:37 -0400
commitf7b0e1055574ce06ab53391263b4e205bf38daf3 (patch)
tree89af3f6926dcfcd3f96fd2535cb8f6669a0f5419 /arch/x86/kernel/irq.c
parentc1be5a5b1b355d40e6cf79cc979eb66dafa24ad1 (diff)
x86: Eliminate irq_mis_count counted in arch_irq_stat
With the current implementation, kstat_cpu(cpu).irqs_sum is also increased in case of irq_mis_count increment. So there is no need to count irq_mis_count in arch_irq_stat, otherwise irq_mis_count will be counted twice in the sum of /proc/stat. Reported-by: Liu Chuansheng <chuansheng.liu@intel.com> Signed-off-by: Li Fei <fei.li@intel.com> Acked-by: Liu Chuansheng <chuansheng.liu@intel.com> Cc: tomoki.sekiyama.qu@hitachi.com Cc: joe@perches.com Link: http://lkml.kernel.org/r/1366980611.32469.7.camel@fli24-HP-Compaq-8100-Elite-CMT-PC Cc: <stable@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/irq.c')
-rw-r--r--arch/x86/kernel/irq.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c
index e4595f105910..84b778962c66 100644
--- a/arch/x86/kernel/irq.c
+++ b/arch/x86/kernel/irq.c
@@ -165,10 +165,6 @@ u64 arch_irq_stat_cpu(unsigned int cpu)
165u64 arch_irq_stat(void) 165u64 arch_irq_stat(void)
166{ 166{
167 u64 sum = atomic_read(&irq_err_count); 167 u64 sum = atomic_read(&irq_err_count);
168
169#ifdef CONFIG_X86_IO_APIC
170 sum += atomic_read(&irq_mis_count);
171#endif
172 return sum; 168 return sum;
173} 169}
174 170