mm: remove include/linux/bootmem.h
[sfrench/cifs-2.6.git] / init / main.c
index 1c3f902642809fe8a2e332bef30cdd8226c0e9ae..51b8e7b8ae5b6f2635978cbdca1069269155e734 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/ioport.h>
 #include <linux/init.h>
 #include <linux/initrd.h>
-#include <linux/bootmem.h>
+#include <linux/memblock.h>
 #include <linux/acpi.h>
 #include <linux/console.h>
 #include <linux/nmi.h>
@@ -375,10 +375,10 @@ static inline void smp_prepare_cpus(unsigned int maxcpus) { }
 static void __init setup_command_line(char *command_line)
 {
        saved_command_line =
-               memblock_virt_alloc(strlen(boot_command_line) + 1, 0);
+               memblock_alloc(strlen(boot_command_line) + 1, 0);
        initcall_command_line =
-               memblock_virt_alloc(strlen(boot_command_line) + 1, 0);
-       static_command_line = memblock_virt_alloc(strlen(command_line) + 1, 0);
+               memblock_alloc(strlen(boot_command_line) + 1, 0);
+       static_command_line = memblock_alloc(strlen(command_line) + 1, 0);
        strcpy(saved_command_line, boot_command_line);
        strcpy(static_command_line, command_line);
 }
@@ -773,8 +773,8 @@ static int __init initcall_blacklist(char *str)
                str_entry = strsep(&str, ",");
                if (str_entry) {
                        pr_debug("blacklisting initcall %s\n", str_entry);
-                       entry = alloc_bootmem(sizeof(*entry));
-                       entry->buf = alloc_bootmem(strlen(str_entry) + 1);
+                       entry = memblock_alloc(sizeof(*entry), 0);
+                       entry->buf = memblock_alloc(strlen(str_entry) + 1, 0);
                        strcpy(entry->buf, str_entry);
                        list_add(&entry->next, &blacklisted_initcalls);
                }