aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mn10300/include')
-rw-r--r--arch/mn10300/include/asm/processor.h3
-rw-r--r--arch/mn10300/include/asm/thread_info.h17
2 files changed, 3 insertions, 17 deletions
diff --git a/arch/mn10300/include/asm/processor.h b/arch/mn10300/include/asm/processor.h
index f7b3c9ab2cb5..247928c9f549 100644
--- a/arch/mn10300/include/asm/processor.h
+++ b/arch/mn10300/include/asm/processor.h
@@ -139,9 +139,6 @@ static inline void start_thread(struct pt_regs *regs,
139/* Free all resources held by a thread. */ 139/* Free all resources held by a thread. */
140extern void release_thread(struct task_struct *); 140extern void release_thread(struct task_struct *);
141 141
142/* Prepare to copy thread state - unlazy all lazy status */
143extern void prepare_to_copy(struct task_struct *tsk);
144
145/* 142/*
146 * create a kernel thread without removing it from tasklists 143 * create a kernel thread without removing it from tasklists
147 */ 144 */
diff --git a/arch/mn10300/include/asm/thread_info.h b/arch/mn10300/include/asm/thread_info.h
index 28cf52100baa..08251d6f6b11 100644
--- a/arch/mn10300/include/asm/thread_info.h
+++ b/arch/mn10300/include/asm/thread_info.h
@@ -20,8 +20,10 @@
20 20
21#ifdef CONFIG_4KSTACKS 21#ifdef CONFIG_4KSTACKS
22#define THREAD_SIZE (4096) 22#define THREAD_SIZE (4096)
23#define THREAD_SIZE_ORDER (0)
23#else 24#else
24#define THREAD_SIZE (8192) 25#define THREAD_SIZE (8192)
26#define THREAD_SIZE_ORDER (1)
25#endif 27#endif
26 28
27#define STACK_WARN (THREAD_SIZE / 8) 29#define STACK_WARN (THREAD_SIZE / 8)
@@ -120,21 +122,8 @@ static inline unsigned long current_stack_pointer(void)
120 return sp; 122 return sp;
121} 123}
122 124
123#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
124
125/* thread information allocation */
126#ifdef CONFIG_DEBUG_STACK_USAGE
127#define alloc_thread_info_node(tsk, node) \
128 kzalloc_node(THREAD_SIZE, GFP_KERNEL, node)
129#else
130#define alloc_thread_info_node(tsk, node) \
131 kmalloc_node(THREAD_SIZE, GFP_KERNEL, node)
132#endif
133
134#ifndef CONFIG_KGDB 125#ifndef CONFIG_KGDB
135#define free_thread_info(ti) kfree((ti)) 126void arch_release_thread_info(struct thread_info *ti)
136#else
137extern void free_thread_info(struct thread_info *);
138#endif 127#endif
139#define get_thread_info(ti) get_task_struct((ti)->task) 128#define get_thread_info(ti) get_task_struct((ti)->task)
140#define put_thread_info(ti) put_task_struct((ti)->task) 129#define put_thread_info(ti) put_task_struct((ti)->task)