genirq: Add a IRQF_NO_DEBUG flag
authorThomas Gleixner <tglx@linutronix.de>
Fri, 2 Apr 2021 06:23:25 +0000 (08:23 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 17 May 2021 18:01:35 +0000 (20:01 +0200)
commitc2b1063e8feb2115537addce10f36c0c82d11d9b
tree13b7ad872a31852d967f1869e4feeb0e2cbbf227
parentd07f6ca923ea0927a1024dfccafc5b53b61cfecc
genirq: Add a IRQF_NO_DEBUG flag

The whole call to note_interrupt() can be avoided or return early when
interrupts would be marked accordingly. For IPI handlers which always
return HANDLED the whole procedure is pretty pointless to begin with.

Add a IRQF_NO_DEBUG flag and mark the interrupt accordingly if supplied
when the interrupt is requested.

When noirqdebug is set on the kernel commandline, then the interrupt is
marked unconditionally so that there is only one condition in the hotpath
to evaluate.

 [ clg: Add changelog ]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/7a8ad02f-63a8-c1aa-fdd1-39d973593d02@kaod.org
include/linux/interrupt.h
include/linux/irq.h
kernel/irq/chip.c
kernel/irq/handle.c
kernel/irq/manage.c
kernel/irq/settings.h