s390/irq: inline do_softirq_own_stack()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 5 Jul 2021 20:27:06 +0000 (22:27 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 8 Jul 2021 20:12:17 +0000 (22:12 +0200)
Move do_softirq_own_stack() to proper header file so it can be
inlined; saving a few cycles.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/softirq_stack.h [new file with mode: 0644]
arch/s390/kernel/irq.c

diff --git a/arch/s390/include/asm/softirq_stack.h b/arch/s390/include/asm/softirq_stack.h
new file mode 100644 (file)
index 0000000..5976fd6
--- /dev/null
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+#ifndef __ASM_S390_SOFTIRQ_STACK_H
+#define __ASM_S390_SOFTIRQ_STACK_H
+
+#include <asm/lowcore.h>
+#include <asm/stacktrace.h>
+
+static inline void do_softirq_own_stack(void)
+{
+       CALL_ON_STACK(__do_softirq, S390_lowcore.async_stack, 0);
+}
+
+#endif /* __ASM_S390_SOFTIRQ_STACK_H */
index a03d9f5..b55af91 100644 (file)
@@ -265,14 +265,6 @@ unsigned int arch_dynirq_lower_bound(unsigned int from)
        return from < NR_IRQS_BASE ? NR_IRQS_BASE : from;
 }
 
-/*
- * Switch to the asynchronous interrupt stack for softirq execution.
- */
-void do_softirq_own_stack(void)
-{
-       CALL_ON_STACK(__do_softirq, S390_lowcore.async_stack, 0);
-}
-
 /*
  * ext_int_hash[index] is the list head for all external interrupts that hash
  * to this index.