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>
This commit is contained in:
Heiko Carstens 2021-07-05 22:27:06 +02:00 committed by Vasily Gorbik
parent 938e02beb3
commit 2ae6521504
2 changed files with 13 additions and 8 deletions

View File

@ -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 */

View 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.