aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index e3c335e47cd2..7becd8b5c5bf 100644
--- a/init/main.c
+++ b/init/main.c
@@ -540,6 +540,11 @@ void __init __weak thread_info_cache_init(void)
540 */ 540 */
541static void __init mm_init(void) 541static void __init mm_init(void)
542{ 542{
543 /*
544 * page_cgroup requires countinous pages as memmap
545 * and it's bigger than MAX_ORDER unless SPARSEMEM.
546 */
547 page_cgroup_init_flatmem();
543 mem_init(); 548 mem_init();
544 kmem_cache_init(); 549 kmem_cache_init();
545 vmalloc_init(); 550 vmalloc_init();
@@ -636,6 +641,7 @@ asmlinkage void __init start_kernel(void)
636 "enabled early\n"); 641 "enabled early\n");
637 early_boot_irqs_on(); 642 early_boot_irqs_on();
638 local_irq_enable(); 643 local_irq_enable();
644 kmem_cache_init_late();
639 645
640 /* 646 /*
641 * HACK ALERT! This is early. We're enabling the console before 647 * HACK ALERT! This is early. We're enabling the console before