aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/init.c')
-rw-r--r--arch/sh/mm/init.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index 761910d142f8..d5fb014279ad 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -283,35 +283,6 @@ void free_initrd_mem(unsigned long start, unsigned long end)
283} 283}
284#endif 284#endif
285 285
286#if THREAD_SHIFT < PAGE_SHIFT
287static struct kmem_cache *thread_info_cache;
288
289struct thread_info *alloc_thread_info(struct task_struct *tsk)
290{
291 struct thread_info *ti;
292
293 ti = kmem_cache_alloc(thread_info_cache, GFP_KERNEL);
294 if (unlikely(ti == NULL))
295 return NULL;
296#ifdef CONFIG_DEBUG_STACK_USAGE
297 memset(ti, 0, THREAD_SIZE);
298#endif
299 return ti;
300}
301
302void free_thread_info(struct thread_info *ti)
303{
304 kmem_cache_free(thread_info_cache, ti);
305}
306
307void thread_info_cache_init(void)
308{
309 thread_info_cache = kmem_cache_create("thread_info", THREAD_SIZE,
310 THREAD_SIZE, 0, NULL);
311 BUG_ON(thread_info_cache == NULL);
312}
313#endif /* THREAD_SHIFT < PAGE_SHIFT */
314
315#ifdef CONFIG_MEMORY_HOTPLUG 286#ifdef CONFIG_MEMORY_HOTPLUG
316int arch_add_memory(int nid, u64 start, u64 size) 287int arch_add_memory(int nid, u64 start, u64 size)
317{ 288{