summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2012-06-11 11:29:44 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2012-06-11 11:29:44 +0530
commite6dca42c2c2ad0f06c6704c73a03e5516dc14b13 (patch)
tree6ce2385fd736a6fc9a02ace4f5f139a6c8cfbaaf /init
parent462ba8b0bca7e376722158f1f1a094ba1c0bd1ad (diff)
parent1f5547c7f183363eabe07e5d202a49f2e94e995a (diff)
Merge commit 'v3.4.2' into android-tegra-nv-3.4
Conflicts: drivers/i2c/busses/i2c-tegra.c drivers/usb/gadget/fsl_udc_core.c Change-Id: Ibfc3a8edc3665b832ddc94f89fc17b556629d104 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'init')
-rw-r--r--init/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/init/main.c b/init/main.c
index 44b2433334c7..cb54cd3dbf05 100644
--- a/init/main.c
+++ b/init/main.c
@@ -560,9 +560,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();
/*
@@ -842,6 +839,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
*/