Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[S390] current_thread_info optimization

Use thread_info lowcore field for current_thread_info(), saves
an unnecessary calculation.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Martin Schwidefsky and committed by
Martin Schwidefsky
6432c015 b1b75091

+1 -1
+1 -1
arch/s390/include/asm/thread_info.h
··· 74 74 /* how to get the thread information struct from C */ 75 75 static inline struct thread_info *current_thread_info(void) 76 76 { 77 - return (struct thread_info *)(S390_lowcore.kernel_stack - THREAD_SIZE); 77 + return (struct thread_info *) S390_lowcore.thread_info; 78 78 } 79 79 80 80 #define THREAD_SIZE_ORDER THREAD_ORDER