aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/irq/internals.h
diff options
context:
space:
mode:
authorAdrian Huang <ahuang12@lenovo.com>2024-05-15 18:06:32 +0800
committerThomas Gleixner <tglx@linutronix.de>2024-06-03 11:48:29 +0200
commit540588772ed0b191969c7902bf90d561ab0035be (patch)
tree089ea93842054367cb49026f7a0d65659ac3dcec /kernel/irq/internals.h
parentLinux 6.10-rc2 (diff)
downloadwireguard-linux-540588772ed0b191969c7902bf90d561ab0035be.tar.xz
wireguard-linux-540588772ed0b191969c7902bf90d561ab0035be.zip
genirq/proc: Simplify irqdesc::kstat_irqs handling further
Interrupts which have no action and chained interrupts can be ignored due to the following reasons (as per tglx's comment): 1) Interrupts which have no action are completely uninteresting as there is no real information attached. 2) Chained interrupts do not have a count at all. So there is no point to evaluate the number of accounted interrupts before checking for non-requested or chained interrupts. Remove the any_count logic and simply check whether the interrupt descriptor has the kstat_irqs member populated. [ tglx: Adapted to upstream changes ] Suggested-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Adrian Huang <ahuang12@lenovo.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Jiwei Sun <sunjw10@lenovo.com> Link: https://lore.kernel.org/r/20240515100632.1419-1-ahuang12@lenovo.com Link: https://lore.kernel.org/lkml/87h6f0knau.ffs@tglx/
Diffstat (limited to 'kernel/irq/internals.h')
0 files changed, 0 insertions, 0 deletions