提交 6432c015 编写于 作者: M Martin Schwidefsky 提交者: Martin Schwidefsky

[S390] current_thread_info optimization

Use thread_info lowcore field for current_thread_info(), saves
an unnecessary calculation.
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 b1b75091
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册