summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-12 13:10:06 +0300
committerPaul Mundt <lethal@linux-sh.org>2010-01-12 13:10:06 +0300
commita3705799e2cc5fb69d88ad6a7f317a8f5597f18d (patch)
tree0c393273251761aa054dff950393b2289ef6d8c4 /arch
parentcbf6b1ba7ae12b3f7cb6b0d060b88d44649f9eda (diff)
downloadlinux-a3705799e2cc5fb69d88ad6a7f317a8f5597f18d.tar.xz
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')
-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)
void thread_info_cache_init(void)
{
thread_info_cache = kmem_cache_create("thread_info", THREAD_SIZE,
- THREAD_SIZE, 0, NULL);
- BUG_ON(thread_info_cache == NULL);
+ THREAD_SIZE, SLAB_PANIC, NULL);
}
#else
struct thread_info *alloc_thread_info(struct task_struct *tsk)