diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-16 23:48:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-17 00:14:42 -0400 |
commit | c868d550115b9ccc0027c67265b9520790f05601 (patch) | |
tree | a3f9cde54f616e8d69005b217e917cd8025c33d3 | |
parent | 517d08699b250021303f9a7cf0d758b6dc0748ed (diff) |
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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | init/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index 7756ddad3c85..0e7aedeaa05f 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -547,6 +547,7 @@ static void __init mm_init(void) | |||
547 | page_cgroup_init_flatmem(); | 547 | page_cgroup_init_flatmem(); |
548 | mem_init(); | 548 | mem_init(); |
549 | kmem_cache_init(); | 549 | kmem_cache_init(); |
550 | pgtable_cache_init(); | ||
550 | vmalloc_init(); | 551 | vmalloc_init(); |
551 | } | 552 | } |
552 | 553 | ||
@@ -684,7 +685,6 @@ asmlinkage void __init start_kernel(void) | |||
684 | late_time_init(); | 685 | late_time_init(); |
685 | calibrate_delay(); | 686 | calibrate_delay(); |
686 | pidmap_init(); | 687 | pidmap_init(); |
687 | pgtable_cache_init(); | ||
688 | anon_vma_init(); | 688 | anon_vma_init(); |
689 | #ifdef CONFIG_X86 | 689 | #ifdef CONFIG_X86 |
690 | if (efi_enabled) | 690 | if (efi_enabled) |