From: Michael Ellerman Date: Mon, 30 Mar 2015 03:10:37 +0000 (+1100) Subject: powerpc: Replace mem_init_done with slab_is_available() X-Git-Tag: omap-for-v4.1/fixes-rc1~126^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f691fa1080c37c48da0cdfeae082c3bef5df2643;p=pandora-kernel.git 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 --- Reading git-diff-tree failed