summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/entry-common.h
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2023-03-27 11:37:27 +0200
committerVasily Gorbik <gor@linux.ibm.com>2023-04-04 18:34:56 +0200
commit22ca1e7738025ae38d07c05bae2af934b1b2c11f (patch)
treed727a91d27bd89cf66c1083327f726285a8e6315 /arch/s390/include/asm/entry-common.h
parents390: remove arch_early_irq_init() (diff)
downloadlinux-22ca1e7738025ae38d07c05bae2af934b1b2c11f.tar.xz
linux-22ca1e7738025ae38d07c05bae2af934b1b2c11f.zip
s390: move on_thread_stack() to processor.h
As preparation for the stackleak feature move on_thread_stack() to processor.h like x86. Also make it __always_inline, and slightly optimize it by reading current task's kernel stack pointer from lowcore. Reviewed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/entry-common.h')
-rw-r--r--arch/s390/include/asm/entry-common.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/s390/include/asm/entry-common.h b/arch/s390/include/asm/entry-common.h
index 000de2b1e67a..fdd319a622b0 100644
--- a/arch/s390/include/asm/entry-common.h
+++ b/arch/s390/include/asm/entry-common.h
@@ -60,9 +60,4 @@ static inline void arch_exit_to_user_mode_prepare(struct pt_regs *regs,
#define arch_exit_to_user_mode_prepare arch_exit_to_user_mode_prepare
-static inline bool on_thread_stack(void)
-{
- return !(((unsigned long)(current->stack) ^ current_stack_pointer) & ~(THREAD_SIZE - 1));
-}
-
#endif