projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1be5a5
)
x86: Eliminate irq_mis_count counted in arch_irq_stat
author
Li Fei
<
[email protected]
>
Fri, 26 Apr 2013 12:50:11 +0000
(20:50 +0800)
committer
Ingo Molnar
<
[email protected]
>
Tue, 30 Apr 2013 08:56:37 +0000
(10:56 +0200)
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 <
[email protected]
>
Signed-off-by: Li Fei <
[email protected]
>
Acked-by: Liu Chuansheng <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/1366980611.32469.7.camel@fli24-HP-Compaq-8100-Elite-CMT-PC
Cc: <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/irq.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/irq.c
b/arch/x86/kernel/irq.c
index e4595f10591071c4af181bc0a16a2bf2d901a30f..84b778962c661ce3a00f6c333038d4fa328628a2 100644
(file)
--- a/
arch/x86/kernel/irq.c
+++ b/
arch/x86/kernel/irq.c
@@
-165,10
+165,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;
}