diff options
| author | Thomas Gleixner <tglx@kernel.org> | 2026-05-17 22:01:59 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-05-26 16:21:12 +0200 |
| commit | d6b70b16b4e7035d230ef97ac6927f40e6aefcce (patch) | |
| tree | 4e75ba3ee509ca76d0faa0ee89d562d1625d12cf /fs | |
| parent | 8713f2e596a134ed5c41e96bb9714251a5e6d56a (diff) | |
| download | linux-next-history-d6b70b16b4e7035d230ef97ac6927f40e6aefcce.tar.gz | |
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
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/proc/stat.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/proc/stat.c b/fs/proc/stat.c index 8b444e862319c..20c3df9a9b800 100644 --- a/fs/proc/stat.c +++ b/fs/proc/stat.c @@ -18,9 +18,6 @@ #ifndef arch_irq_stat_cpu #define arch_irq_stat_cpu(cpu) 0 #endif -#ifndef arch_irq_stat -#define arch_irq_stat() 0 -#endif u64 get_idle_time(struct kernel_cpustat *kcs, int cpu) { @@ -122,7 +119,6 @@ static int show_stat(struct seq_file *p, void *v) sum_softirq += softirq_stat; } } - sum += arch_irq_stat(); seq_put_decimal_ull(p, "cpu ", nsec_to_clock_t(user)); seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); |
