diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-09-07 17:03:19 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-10-09 11:20:56 +0200 |
commit | ff340d2472ec7618443913928af9fb85a7009270 (patch) | |
tree | f0228c89cf80d5fc617bf7f7fea79f2c610afa1f /arch/s390/kernel | |
parent | 53c99bd665a2649341ed6aed358ab56a3eedcd00 (diff) | |
download | linux-stable-ff340d2472ec7618443913928af9fb85a7009270.tar.gz linux-stable-ff340d2472ec7618443913928af9fb85a7009270.tar.bz2 linux-stable-ff340d2472ec7618443913928af9fb85a7009270.zip |
s390: add stack switch helper
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/irq.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/s390/kernel/irq.c b/arch/s390/kernel/irq.c index 3d17c41074ca..0e8d68bac82c 100644 --- a/arch/s390/kernel/irq.c +++ b/arch/s390/kernel/irq.c @@ -172,15 +172,7 @@ void do_softirq_own_stack(void) /* Check against async. stack address range. */ new = S390_lowcore.async_stack; if (((new - old) >> (PAGE_SHIFT + THREAD_SIZE_ORDER)) != 0) { - /* Need to switch to the async. stack. */ - new -= STACK_FRAME_OVERHEAD; - ((struct stack_frame *) new)->back_chain = old; - asm volatile(" la 15,0(%0)\n" - " brasl 14,__do_softirq\n" - " la 15,0(%1)\n" - : : "a" (new), "a" (old) - : "0", "1", "2", "3", "4", "5", "14", - "cc", "memory" ); + CALL_ON_STACK(__do_softirq, new, 0); } else { /* We are already on the async stack. */ __do_softirq(); |