Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6432c015 authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Martin Schwidefsky
Browse files

[S390] current_thread_info optimization



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

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent b1b75091
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ struct thread_info {
/* how to get the thread information struct from C */
static inline struct thread_info *current_thread_info(void)
{
	return (struct thread_info *)(S390_lowcore.kernel_stack - THREAD_SIZE);
	return (struct thread_info *) S390_lowcore.thread_info;
}

#define THREAD_SIZE_ORDER THREAD_ORDER