projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbf6b1b
)
sh: Use SLAB_PANIC for thread_info slab cache.
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 12 Jan 2010 10:10:06 +0000
(19:10 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 12 Jan 2010 10:10:06 +0000
(19:10 +0900)
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>
arch/sh/kernel/process.c
patch
|
blob
|
history
diff --git
a/arch/sh/kernel/process.c
b/arch/sh/kernel/process.c
index b2bda83baeef033ea899107263489e02b9bef2db..077e06e1a8899a5175118b5dd5b8de9d8660d7cc 100644
(file)
--- 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)