]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/irq: Move IOAPIC misrouted and PIC/APIC error counts into irq_stats
authorThomas Gleixner <tglx@kernel.org>
Sun, 17 May 2026 20:01:59 +0000 (22:01 +0200)
committerThomas Gleixner <tglx@kernel.org>
Tue, 26 May 2026 14:21:12 +0000 (16:21 +0200)
commitd6b70b16b4e7035d230ef97ac6927f40e6aefcce
tree4e75ba3ee509ca76d0faa0ee89d562d1625d12cf
parent8713f2e596a134ed5c41e96bb9714251a5e6d56a
x86/irq: Move IOAPIC misrouted and PIC/APIC error counts into irq_stats

The special treatment of these counts is just adding extra code for no real
value. The irq_stats mechanism allows to suppress output of counters, which
should never happen by default and provides a mechanism to enable them for
the rare case that they occur.

Move the IOAPIC misrouted and the PIC/APIC error counts into irq_stats,
mark them suppressed by default and update the sites which increment them.

This changes the output format of 'ERR' and 'MIS' in case there are events
to the regular per CPU display format and otherwise suppresses them
completely.

As a side effect this removes the arch_cpu_stat() mechanism from proc/stat
which was only there to account for the error interrupts on x86 and missed
to take the misrouted ones into account.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Radu Rendec <radu@rendec.net>
Link: https://patch.msgid.link/20260517194931.361942103@kernel.org
arch/x86/include/asm/hardirq.h
arch/x86/include/asm/hw_irq.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/io_apic.c
arch/x86/kernel/i8259.c
arch/x86/kernel/irq.c
fs/proc/stat.c