]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Convert device interrupts to inline stack switching
authorThomas Gleixner <tglx@linutronix.de>
Tue, 9 Feb 2021 23:40:48 +0000 (00:40 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Feb 2021 22:34:15 +0000 (23:34 +0100)
commitbe295389d3b1fde16a958635fa59866c1b02dec1
treeac85323cbf921a2291585161daf780fe7d924ba1
parent765b380cac2c4359e5d43c3be2646f7894d37c59
x86/entry: Convert device interrupts to inline stack switching

Convert device interrupts to inline stack switching by replacing the
existing macro implementation with the new inline version. Tweak the
function signature of the actual handler function to have the vector
argument as u32. That allows the inline macro to avoid extra intermediates
and lets the compiler be smarter about the whole thing.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210210002512.769728139@linutronix.de
arch/x86/entry/entry_64.S
arch/x86/include/asm/idtentry.h
arch/x86/include/asm/irq_stack.h
arch/x86/kernel/irq.c