aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/process.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-12 05:10:06 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-01-12 05:10:06 -0500
commita3705799e2cc5fb69d88ad6a7f317a8f5597f18d (patch)
tree0c393273251761aa054dff950393b2289ef6d8c4 /arch/sh/kernel/process.c
parentcbf6b1ba7ae12b3f7cb6b0d060b88d44649f9eda (diff)
sh: Use SLAB_PANIC for thread_info slab cache.
Presently this has a BUG_ON() for failure cases, as powerpc does. Switch this over to a SLAB_PANIC instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/process.c')
-rw-r--r--arch/sh/kernel/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c
index b2bda83baeef..077e06e1a889 100644
--- a/arch/sh/kernel/process.c
+++ b/arch/sh/kernel/process.c
@@ -26,8 +26,7 @@ void free_thread_info(struct thread_info *ti)
26void thread_info_cache_init(void) 26void thread_info_cache_init(void)
27{ 27{
28 thread_info_cache = kmem_cache_create("thread_info", THREAD_SIZE, 28 thread_info_cache = kmem_cache_create("thread_info", THREAD_SIZE,
29 THREAD_SIZE, 0, NULL); 29 THREAD_SIZE, SLAB_PANIC, NULL);
30 BUG_ON(thread_info_cache == NULL);
31} 30}
32#else 31#else
33struct thread_info *alloc_thread_info(struct task_struct *tsk) 32struct thread_info *alloc_thread_info(struct task_struct *tsk)