--- zzzz-none-000/linux-3.10.107/arch/powerpc/lib/alloc.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/powerpc/lib/alloc.c 2021-02-04 17:41:59.000000000 +0000 @@ -10,12 +10,10 @@ { void *p; - if (mem_init_done) + if (slab_is_available()) p = kzalloc(size, mask); else { - p = alloc_bootmem(size); - if (p) - memset(p, 0, size); + p = memblock_virt_alloc(size, 0); } return p; }