s390/thread_info: get rid of THREAD_ORDER define
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 14 Nov 2016 13:39:16 +0000 (14:39 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 23 Nov 2016 15:02:21 +0000 (16:02 +0100)
We have the s390 specific THREAD_ORDER define and the THREAD_SIZE_ORDER
define which is also used in common code. Both have exactly the same
semantics. Therefore get rid of THREAD_ORDER and always use
THREAD_SIZE_ORDER instead.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/compressed/head.S
arch/s390/include/asm/thread_info.h
arch/s390/kernel/entry.S
arch/s390/kernel/head.S
arch/s390/kernel/head64.S
arch/s390/kernel/irq.c
arch/s390/kernel/swsusp.S

index 28c4f96..11f6254 100644 (file)
@@ -46,7 +46,7 @@ mover_end:
 
        .align  8
 .Lstack:
-       .quad   0x8000 + (1<<(PAGE_SHIFT+THREAD_ORDER))
+       .quad   0x8000 + (1<<(PAGE_SHIFT+THREAD_SIZE_ORDER))
 .Loffset:
        .quad   0x11000
 .Lmvsize:
index 6084706..a5b54a4 100644 (file)
 /*
  * Size of kernel stack for each process
  */
-#define THREAD_ORDER 2
+#define THREAD_SIZE_ORDER 2
 #define ASYNC_ORDER  2
 
-#define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER)
+#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
 #define ASYNC_SIZE  (PAGE_SIZE << ASYNC_ORDER)
 
 #ifndef __ASSEMBLY__
@@ -46,8 +46,6 @@ struct thread_info {
 void arch_release_task_struct(struct task_struct *tsk);
 int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);
 
-#define THREAD_SIZE_ORDER THREAD_ORDER
-
 #endif
 
 /*
index 1cc4578..9e0291a 100644 (file)
@@ -42,7 +42,7 @@ __PT_R13     =        __PT_GPRS + 104
 __PT_R14     = __PT_GPRS + 112
 __PT_R15     = __PT_GPRS + 120
 
-STACK_SHIFT = PAGE_SHIFT + THREAD_ORDER
+STACK_SHIFT = PAGE_SHIFT + THREAD_SIZE_ORDER
 STACK_SIZE  = 1 << STACK_SHIFT
 STACK_INIT = STACK_SIZE - STACK_FRAME_OVERHEAD - __PT_SIZE
 
index 4431905..0b5ebf8 100644 (file)
@@ -315,7 +315,7 @@ ENTRY(startup_kdump)
        jg      startup_continue
 
 .Lstack:
-       .long   0x8000 + (1<<(PAGE_SHIFT+THREAD_ORDER))
+       .long   0x8000 + (1<<(PAGE_SHIFT+THREAD_SIZE_ORDER))
        .align  8
 6:     .long   0x7fffffff,0xffffffff
 
index a46201d..482d352 100644 (file)
@@ -35,7 +35,7 @@ ENTRY(startup_continue)
        larl    %r14,init_task
        stg     %r14,__LC_CURRENT
        larl    %r15,init_thread_union
-       aghi    %r15,1<<(PAGE_SHIFT+THREAD_ORDER) # init_task_union + THREAD_SIZE
+       aghi    %r15,1<<(PAGE_SHIFT+THREAD_SIZE_ORDER) # init_task_union + THREAD_SIZE
        stg     %r15,__LC_KERNEL_STACK  # set end of kernel stack
        aghi    %r15,-160
 #
index 285d656..ef60f41 100644 (file)
@@ -168,7 +168,7 @@ void do_softirq_own_stack(void)
        old = current_stack_pointer();
        /* Check against async. stack address range. */
        new = S390_lowcore.async_stack;
-       if (((new - old) >> (PAGE_SHIFT + THREAD_ORDER)) != 0) {
+       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;
index 2d6b6e8..1ff21f0 100644 (file)
@@ -194,7 +194,7 @@ pgm_check_entry:
 
        /* Suspend CPU not available -> panic */
        larl    %r15,init_thread_union
-       ahi     %r15,1<<(PAGE_SHIFT+THREAD_ORDER)
+       ahi     %r15,1<<(PAGE_SHIFT+THREAD_SIZE_ORDER)
        larl    %r2,.Lpanic_string
        larl    %r3,_sclp_print_early
        lghi    %r1,0