diff options
Diffstat (limited to 'arch/sh/mm/init.c')
-rw-r--r-- | arch/sh/mm/init.c | 29 |
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 | ||
287 | static struct kmem_cache *thread_info_cache; | ||
288 | |||
289 | struct 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 | |||
302 | void free_thread_info(struct thread_info *ti) | ||
303 | { | ||
304 | kmem_cache_free(thread_info_cache, ti); | ||
305 | } | ||
306 | |||
307 | void 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 |
316 | int arch_add_memory(int nid, u64 start, u64 size) | 287 | int arch_add_memory(int nid, u64 start, u64 size) |
317 | { | 288 | { |