aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/current.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-12-04 10:47:43 -0800
committerMax Filippov <jcmvbkbc@gmail.com>2017-12-10 14:48:55 -0800
commitf4431396be5b26a9960daf502d129b1b5d126f5e (patch)
treef37f6b0f91e8aae16f13622e81a838d7395de957 /arch/xtensa/include/asm/current.h
parentxtensa: clean up functions in assembly code (diff)
downloadlinux-dev-f4431396be5b26a9960daf502d129b1b5d126f5e.tar.xz
linux-dev-f4431396be5b26a9960daf502d129b1b5d126f5e.zip
xtensa: consolidate kernel stack size related definitions
Define kernel stack size in kmem_layout and use it in current_thread_info, GET_THREAD_INFO, THREAD_SIZE and THERAD_SIZE_ORDER definitions. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/current.h')
-rw-r--r--arch/xtensa/include/asm/current.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/include/asm/current.h b/arch/xtensa/include/asm/current.h
index 47e46dcf5d49..5d98a7ad4251 100644
--- a/arch/xtensa/include/asm/current.h
+++ b/arch/xtensa/include/asm/current.h
@@ -11,6 +11,8 @@
#ifndef _XTENSA_CURRENT_H
#define _XTENSA_CURRENT_H
+#include <asm/thread_info.h>
+
#ifndef __ASSEMBLY__
#include <linux/thread_info.h>
@@ -26,8 +28,6 @@ static inline struct task_struct *get_current(void)
#else
-#define CURRENT_SHIFT 13
-
#define GET_CURRENT(reg,sp) \
GET_THREAD_INFO(reg,sp); \
l32i reg, reg, TI_TASK \