2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 18:23:53 +08:00

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>
This commit is contained in:
David Rientjes 2015-04-14 15:42:40 -07:00 committed by Linus Torvalds
parent 7b4b425897
commit 1cf370c611

View File

@ -1180,17 +1180,13 @@ static int __init dwarf_unwinder_init(void)
sizeof(struct dwarf_reg), 0, sizeof(struct dwarf_reg), 0,
SLAB_PANIC | SLAB_HWCACHE_ALIGN | SLAB_NOTRACK, NULL); SLAB_PANIC | SLAB_HWCACHE_ALIGN | SLAB_NOTRACK, NULL);
dwarf_frame_pool = mempool_create(DWARF_FRAME_MIN_REQ, dwarf_frame_pool = mempool_create_slab_pool(DWARF_FRAME_MIN_REQ,
mempool_alloc_slab, dwarf_frame_cachep);
mempool_free_slab,
dwarf_frame_cachep);
if (!dwarf_frame_pool) if (!dwarf_frame_pool)
goto out; goto out;
dwarf_reg_pool = mempool_create(DWARF_REG_MIN_REQ, dwarf_reg_pool = mempool_create_slab_pool(DWARF_REG_MIN_REQ,
mempool_alloc_slab, dwarf_reg_cachep);
mempool_free_slab,
dwarf_reg_cachep);
if (!dwarf_reg_pool) if (!dwarf_reg_pool)
goto out; goto out;