diff options
author | David Rientjes <rientjes@google.com> | 2015-04-14 18:42:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 19:48:56 -0400 |
commit | 1cf370c61179e01313457363b21f0859be0d8cb7 (patch) | |
tree | 48f94c821ed3a01bb805e5d9965f26dad1422354 /arch/sh/kernel/dwarf.c | |
parent | 7b4b425897cd582897ccc38b637ce7ab5ffc5593 (diff) |
arch/sh/kernel/dwarf.c: use mempool_create_slab_pool()
Mempools created for slab caches should use mempool_create_slab_pool().
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sh/kernel/dwarf.c')
-rw-r--r-- | arch/sh/kernel/dwarf.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c index 60437e9c345e..9d209a07235e 100644 --- a/arch/sh/kernel/dwarf.c +++ b/arch/sh/kernel/dwarf.c | |||
@@ -1180,17 +1180,13 @@ static int __init dwarf_unwinder_init(void) | |||
1180 | sizeof(struct dwarf_reg), 0, | 1180 | sizeof(struct dwarf_reg), 0, |
1181 | SLAB_PANIC | SLAB_HWCACHE_ALIGN | SLAB_NOTRACK, NULL); | 1181 | SLAB_PANIC | SLAB_HWCACHE_ALIGN | SLAB_NOTRACK, NULL); |
1182 | 1182 | ||
1183 | dwarf_frame_pool = mempool_create(DWARF_FRAME_MIN_REQ, | 1183 | dwarf_frame_pool = mempool_create_slab_pool(DWARF_FRAME_MIN_REQ, |
1184 | mempool_alloc_slab, | 1184 | dwarf_frame_cachep); |
1185 | mempool_free_slab, | ||
1186 | dwarf_frame_cachep); | ||
1187 | if (!dwarf_frame_pool) | 1185 | if (!dwarf_frame_pool) |
1188 | goto out; | 1186 | goto out; |
1189 | 1187 | ||
1190 | dwarf_reg_pool = mempool_create(DWARF_REG_MIN_REQ, | 1188 | dwarf_reg_pool = mempool_create_slab_pool(DWARF_REG_MIN_REQ, |
1191 | mempool_alloc_slab, | 1189 | dwarf_reg_cachep); |
1192 | mempool_free_slab, | ||
1193 | dwarf_reg_cachep); | ||
1194 | if (!dwarf_reg_pool) | 1190 | if (!dwarf_reg_pool) |
1195 | goto out; | 1191 | goto out; |
1196 | 1192 | ||