x86/apic: Split out spurious handling code
authorThomas Gleixner <tglx@linutronix.de>
Tue, 9 Feb 2021 23:40:45 +0000 (00:40 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Feb 2021 22:34:14 +0000 (23:34 +0100)
commit3c5e0267ec3e6ed7d3f1793273cbf0beb4f86a74
tree905ce8fd2daf921538d26217049439fa70580574
parent951c2a51ae75382d519839e2308394ad43ce4b40
x86/apic: Split out spurious handling code

sysvec_spurious_apic_interrupt() calls into the handling body of
__spurious_interrupt() which is not obvious as that function is declared
inside the DEFINE_IDTENTRY_IRQ(spurious_interrupt) macro.

As __spurious_interrupt() is currently always inlined this ends up with two
copies of the same code for no reason.

Split the handling function out and invoke it from both entry points.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210210002512.469379641@linutronix.de
arch/x86/kernel/apic/apic.c