x86: hardirq: introduce inc_irq_stat()
Impact: cleanup Introduce inc_irq_stat() macro and unify irq_stat accounting code. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:

committed by
Ingo Molnar

parent
fd10902797
commit
915b0d0104
@@ -481,11 +481,7 @@ do_nmi(struct pt_regs *regs, long error_code)
|
||||
{
|
||||
nmi_enter();
|
||||
|
||||
#ifdef CONFIG_X86_32
|
||||
{ int cpu; cpu = smp_processor_id(); ++nmi_count(cpu); }
|
||||
#else
|
||||
add_pda(__nmi_count, 1);
|
||||
#endif
|
||||
inc_irq_stat(__nmi_count);
|
||||
|
||||
if (!ignore_nmis)
|
||||
default_do_nmi(regs);
|
||||
|
Reference in New Issue
Block a user