camera rk30/rk2928: add support cif pingpong mode , the driver version is v0.4.15
[firefly-linux-kernel-4.4.55.git] / init / main.c
index d7211faed2adfb295caf46bbb9c70835f622eabe..841e344d366ee9ad3c32e486fdbb300e1cc81c9c 100644 (file)
@@ -549,9 +549,6 @@ asmlinkage void __init start_kernel(void)
        early_boot_irqs_disabled = false;
        local_irq_enable();
 
-       /* Interrupts are enabled now so all GFP allocations are safe. */
-       gfp_allowed_mask = __GFP_BITS_MASK;
-
        kmem_cache_init_late();
 
        /*
@@ -783,6 +780,10 @@ static int __init kernel_init(void * unused)
         * Wait until kthreadd is all set-up.
         */
        wait_for_completion(&kthreadd_done);
+
+       /* Now the scheduler is fully set up and can do blocking allocations */
+       gfp_allowed_mask = __GFP_BITS_MASK;
+
        /*
         * init can allocate pages on any node
         */