aboutsummaryrefslogtreecommitdiffstats
path: root/arch/c6x
diff options
context:
space:
mode:
Diffstat (limited to 'arch/c6x')
-rw-r--r--arch/c6x/include/asm/thread_info.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/arch/c6x/include/asm/thread_info.h b/arch/c6x/include/asm/thread_info.h
index fd99148cda9d..1710bcbb8d09 100644
--- a/arch/c6x/include/asm/thread_info.h
+++ b/arch/c6x/include/asm/thread_info.h
@@ -20,11 +20,11 @@
20#ifdef CONFIG_4KSTACKS 20#ifdef CONFIG_4KSTACKS
21#define THREAD_SIZE 4096 21#define THREAD_SIZE 4096
22#define THREAD_SHIFT 12 22#define THREAD_SHIFT 12
23#define THREAD_ORDER 0 23#define THREAD_SIZE_ORDER 0
24#else 24#else
25#define THREAD_SIZE 8192 25#define THREAD_SIZE 8192
26#define THREAD_SHIFT 13 26#define THREAD_SHIFT 13
27#define THREAD_ORDER 1 27#define THREAD_SIZE_ORDER 1
28#endif 28#endif
29 29
30#define THREAD_START_SP (THREAD_SIZE - 8) 30#define THREAD_START_SP (THREAD_SIZE - 8)
@@ -80,19 +80,6 @@ struct thread_info *current_thread_info(void)
80 return ti; 80 return ti;
81} 81}
82 82
83#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
84
85/* thread information allocation */
86#ifdef CONFIG_DEBUG_STACK_USAGE
87#define THREAD_FLAGS (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO)
88#else
89#define THREAD_FLAGS (GFP_KERNEL | __GFP_NOTRACK)
90#endif
91
92#define alloc_thread_info_node(tsk, node) \
93 ((struct thread_info *)__get_free_pages(THREAD_FLAGS, THREAD_ORDER))
94
95#define free_thread_info(ti) free_pages((unsigned long) (ti), THREAD_ORDER)
96#define get_thread_info(ti) get_task_struct((ti)->task) 83#define get_thread_info(ti) get_task_struct((ti)->task)
97#define put_thread_info(ti) put_task_struct((ti)->task) 84#define put_thread_info(ti) put_task_struct((ti)->task)
98#endif /* __ASSEMBLY__ */ 85#endif /* __ASSEMBLY__ */