diff options
-rw-r--r-- | init/main.c | 2 | ||||
-rw-r--r-- | mm/vmalloc.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/init/main.c b/init/main.c index 0ab82a453de5..6d38f9607d14 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -587,7 +587,6 @@ asmlinkage void __init start_kernel(void) | |||
587 | * kmem_cache_init() | 587 | * kmem_cache_init() |
588 | */ | 588 | */ |
589 | pidhash_init(); | 589 | pidhash_init(); |
590 | vmalloc_init(); | ||
591 | vfs_caches_init_early(); | 590 | vfs_caches_init_early(); |
592 | sort_main_extable(); | 591 | sort_main_extable(); |
593 | trap_init(); | 592 | trap_init(); |
@@ -596,6 +595,7 @@ asmlinkage void __init start_kernel(void) | |||
596 | */ | 595 | */ |
597 | mem_init(); | 596 | mem_init(); |
598 | kmem_cache_init(); | 597 | kmem_cache_init(); |
598 | vmalloc_init(); | ||
599 | /* | 599 | /* |
600 | * Set up the scheduler prior starting any interrupts (such as the | 600 | * Set up the scheduler prior starting any interrupts (such as the |
601 | * timer interrupt). Full topology setup happens at smp_init() | 601 | * timer interrupt). Full topology setup happens at smp_init() |
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 083716ea38c9..323513858c20 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/rbtree.h> | 23 | #include <linux/rbtree.h> |
24 | #include <linux/radix-tree.h> | 24 | #include <linux/radix-tree.h> |
25 | #include <linux/rcupdate.h> | 25 | #include <linux/rcupdate.h> |
26 | #include <linux/bootmem.h> | ||
27 | #include <linux/pfn.h> | 26 | #include <linux/pfn.h> |
28 | 27 | ||
29 | #include <asm/atomic.h> | 28 | #include <asm/atomic.h> |
@@ -1032,7 +1031,7 @@ void __init vmalloc_init(void) | |||
1032 | 1031 | ||
1033 | /* Import existing vmlist entries. */ | 1032 | /* Import existing vmlist entries. */ |
1034 | for (tmp = vmlist; tmp; tmp = tmp->next) { | 1033 | for (tmp = vmlist; tmp; tmp = tmp->next) { |
1035 | va = alloc_bootmem(sizeof(struct vmap_area)); | 1034 | va = kzalloc(sizeof(struct vmap_area), GFP_NOWAIT); |
1036 | va->flags = tmp->flags | VM_VM_AREA; | 1035 | va->flags = tmp->flags | VM_VM_AREA; |
1037 | va->va_start = (unsigned long)tmp->addr; | 1036 | va->va_start = (unsigned long)tmp->addr; |
1038 | va->va_end = va->va_start + tmp->size; | 1037 | va->va_end = va->va_start + tmp->size; |