Skip to content

Commit

Permalink
mm: Move pgtable_cache_init() earlier
Browse files Browse the repository at this point in the history
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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Jun 17, 2009
1 parent 517d086 commit c868d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ static void __init mm_init(void)
page_cgroup_init_flatmem();
mem_init();
kmem_cache_init();
pgtable_cache_init();
vmalloc_init();
}

Expand Down Expand Up @@ -684,7 +685,6 @@ asmlinkage void __init start_kernel(void)
late_time_init();
calibrate_delay();
pidmap_init();
pgtable_cache_init();
anon_vma_init();
#ifdef CONFIG_X86
if (efi_enabled)
Expand Down

0 comments on commit c868d55

Please sign in to comment.