From: Li Fei Date: Fri, 26 Apr 2013 12:50:11 +0000 (+0800) Subject: x86: Eliminate irq_mis_count counted in arch_irq_stat X-Git-Tag: v3.2.46~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54d6a8acaa54f4292ed6ffb62eda5a3bdeecee06;p=thirdparty%2Fkernel%2Fstable.git x86: Eliminate irq_mis_count counted in arch_irq_stat commit f7b0e1055574ce06ab53391263b4e205bf38daf3 upstream. 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 Signed-off-by: Li Fei Acked-by: Liu Chuansheng 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 Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index 429e0c92924ee..fb2eb324b29f4 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -160,10 +160,6 @@ u64 arch_irq_stat_cpu(unsigned int cpu) u64 arch_irq_stat(void) { u64 sum = atomic_read(&irq_err_count); - -#ifdef CONFIG_X86_IO_APIC - sum += atomic_read(&irq_mis_count); -#endif return sum; }