Commit 938e02be authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik
Browse files

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: default avatarSven Schnelle <svens@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 4516f355
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -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);
}

/*