diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2018-09-14 17:35:46 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-09-20 13:20:29 +0200 |
commit | 4e62d458850069c9f05e03f99be1a817967e201f (patch) | |
tree | 36930d2ada8892e0b888c1cddcf9cba830b36c33 /arch/s390/kernel/swsusp.S | |
parent | s390/vdso: correct CFI annotations of vDSO functions (diff) | |
download | linux-4e62d458850069c9f05e03f99be1a817967e201f.tar.xz linux-4e62d458850069c9f05e03f99be1a817967e201f.zip |
s390: clean up stacks setup
Replace hard coded stack frame overhead values with STACK_FRAME_OVERHEAD
definition. Avoid unnecessary arithmetic instructions.
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/swsusp.S')
-rw-r--r-- | arch/s390/kernel/swsusp.S | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/s390/kernel/swsusp.S b/arch/s390/kernel/swsusp.S index c1a080b11ae9..34b014b5cf03 100644 --- a/arch/s390/kernel/swsusp.S +++ b/arch/s390/kernel/swsusp.S @@ -197,9 +197,7 @@ pgm_check_entry: brc 2,3b /* busy, try again */ /* Suspend CPU not available -> panic */ - larl %r15,init_thread_union - aghi %r15,1<<(PAGE_SHIFT+THREAD_SIZE_ORDER) - aghi %r15,-STACK_FRAME_OVERHEAD + larl %r15,init_thread_union+THREAD_SIZE-STACK_FRAME_OVERHEAD larl %r2,.Lpanic_string brasl %r14,sclp_early_printk_force larl %r3,.Ldisabled_wait_31 |