summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-07-05 22:27:06 +0200
committerVasily Gorbik <gor@linux.ibm.com>2021-07-08 22:12:17 +0200
commit2ae6521504941650fd48bcefd288730c3e44211a (patch)
treec39a3db78075ed430ee0357c43e3d6e64a35c651 /arch/s390
parent938e02beb3a0181ed1c7828e8939ffa32c350bea (diff)
s390/irq: inline do_softirq_own_stack()
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>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/asm/softirq_stack.h13
-rw-r--r--arch/s390/kernel/irq.c8
2 files changed, 13 insertions, 8 deletions
diff --git a/arch/s390/include/asm/softirq_stack.h b/arch/s390/include/asm/softirq_stack.h
new file mode 100644
index 000000000000..5976fd613cd2
--- /dev/null
+++ b/arch/s390/include/asm/softirq_stack.h
@@ -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 */
diff --git a/arch/s390/kernel/irq.c b/arch/s390/kernel/irq.c
index a03d9f54d36f..b55af916fbd5 100644
--- a/arch/s390/kernel/irq.c
+++ b/arch/s390/kernel/irq.c
@@ -266,14 +266,6 @@ unsigned int arch_dynirq_lower_bound(unsigned int 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.
*/