diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-04 21:47:43 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-11 01:48:55 +0300 |
commit | f4431396be5b26a9960daf502d129b1b5d126f5e (patch) | |
tree | f37f6b0f91e8aae16f13622e81a838d7395de957 /arch/xtensa/include/asm/current.h | |
parent | 5cf97ebd8b40e2b1791136fc1476d17365864b18 (diff) | |
download | linux-f4431396be5b26a9960daf502d129b1b5d126f5e.tar.xz |
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.h | 4 |
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 \ |