From 938e02beb3a0181ed1c7828e8939ffa32c350bea Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Mon, 5 Jul 2021 22:26:26 +0200 Subject: s390/irq: simplify do_softirq_own_stack() do_softirq_own_stack() is always called from task context and therefore it is not necessary to check if the async stack is currently used. Remove the check and directly switch to async stack. Reviewed-by: Sven Schnelle Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- arch/s390/kernel/irq.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'arch/s390/kernel/irq.c') diff --git a/arch/s390/kernel/irq.c b/arch/s390/kernel/irq.c index c0df4060d28d..a03d9f54d36f 100644 --- a/arch/s390/kernel/irq.c +++ b/arch/s390/kernel/irq.c @@ -270,17 +270,7 @@ unsigned int arch_dynirq_lower_bound(unsigned int from) */ void do_softirq_own_stack(void) { - unsigned long old, new; - - old = current_stack_pointer(); - /* Check against async. stack address range. */ - new = S390_lowcore.async_stack; - if (((new - old) >> (PAGE_SHIFT + THREAD_SIZE_ORDER)) != 0) { - CALL_ON_STACK(__do_softirq, new, 0); - } else { - /* We are already on the async stack. */ - __do_softirq(); - } + CALL_ON_STACK(__do_softirq, S390_lowcore.async_stack, 0); } /* -- cgit v1.2.3