Skip to content

Commit

Permalink
sh: Use SLAB_PANIC for thread_info slab cache.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Jan 12, 2010
1 parent cbf6b1b commit a370579
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sh/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a370579

Please sign in to comment.