powerpc: Replace mem_init_done with slab_is_available()
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 Mar 2015 03:10:37 +0000 (14:10 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Apr 2015 10:02:48 +0000 (20:02 +1000)
commitf691fa1080c37c48da0cdfeae082c3bef5df2643
treefc961091a54c1be106c320108b231b340a979888
parent4f9c53c8cc76ed84e3bb0cca8c4ffa2b170d0239
powerpc: Replace mem_init_done with slab_is_available()

We have a powerpc specific global called mem_init_done which is "set on
boot once kmalloc can be called".

But that's not *quite* true. We set it at the bottom of mem_init(), and
rely on the fact that mm_init() calls kmem_cache_init() immediately
after that, and nothing is running in parallel.

So replace it with the generic and 100% correct slab_is_available().

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/pci-common.c
arch/powerpc/kernel/rtas.c
arch/powerpc/lib/alloc.c
arch/powerpc/mm/mem.c
arch/powerpc/mm/pgtable_32.c
arch/powerpc/mm/pgtable_64.c