x86/softirq/64: Inline do_softirq_own_stack()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 9 Feb 2021 23:40:54 +0000 (00:40 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Feb 2021 22:34:17 +0000 (23:34 +0100)
There is no reason to have this as a seperate function for a single caller.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210210002513.382806685@linutronix.de
arch/x86/include/asm/irq_stack.h
arch/x86/include/asm/softirq_stack.h [new file with mode: 0644]
arch/x86/kernel/irq_64.c

index 1b82f923070962f31764a2d2a10bb824e1986c9c..9b2a0ff76c73e215ca788300835f74462ded371e 100644 (file)
  * interrupts are pending to be processed. The interrupt stack cannot be in
  * use here.
  */
-#define run_softirq_on_irqstack()                                      \
+#define do_softirq_own_stack()                                         \
 {                                                                      \
        __this_cpu_write(hardirq_stack_inuse, true);                    \
        call_on_irqstack(__do_softirq, ASM_CALL_SOFTIRQ);               \
 }
 
 #else /* CONFIG_X86_64 */
-
 /* System vector handlers always run on the stack they interrupted. */
 #define run_sysvec_on_irqstack_cond(func, regs)                                \
 {                                                                      \
diff --git a/arch/x86/include/asm/softirq_stack.h b/arch/x86/include/asm/softirq_stack.h
new file mode 100644 (file)
index 0000000..889d53d
--- /dev/null
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_X86_SOFTIRQ_STACK_H
+#define _ASM_X86_SOFTIRQ_STACK_H
+
+#ifdef CONFIG_X86_64
+# include <asm/irq_stack.h>
+#else
+# include <asm-generic/softirq_stack.h>
+#endif
+
+#endif
index f335c39108348811cfe9f670e1841a136f6d4fab..1c0fb96b9e39069d4d246f32f5e5c782e8e7be38 100644 (file)
@@ -74,8 +74,3 @@ int irq_init_percpu_irqstack(unsigned int cpu)
                return 0;
        return map_irq_stack(cpu);
 }
-
-void do_softirq_own_stack(void)
-{
-       run_softirq_on_irqstack();
-}