Commit c868d550 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Linus Torvalds

mm: Move pgtable_cache_init() earlier

Some architectures need to initialize SLAB caches to be able
to allocate page tables. They do that from pgtable_cache_init()
so the later should be called earlier now, best is before
vmalloc_init().
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 517d0869
...@@ -547,6 +547,7 @@ static void __init mm_init(void) ...@@ -547,6 +547,7 @@ static void __init mm_init(void)
page_cgroup_init_flatmem(); page_cgroup_init_flatmem();
mem_init(); mem_init();
kmem_cache_init(); kmem_cache_init();
pgtable_cache_init();
vmalloc_init(); vmalloc_init();
} }
...@@ -684,7 +685,6 @@ asmlinkage void __init start_kernel(void) ...@@ -684,7 +685,6 @@ asmlinkage void __init start_kernel(void)
late_time_init(); late_time_init();
calibrate_delay(); calibrate_delay();
pidmap_init(); pidmap_init();
pgtable_cache_init();
anon_vma_init(); anon_vma_init();
#ifdef CONFIG_X86 #ifdef CONFIG_X86
if (efi_enabled) if (efi_enabled)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment