]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - init/main.c
Merge branch 'akpm' (patches from Andrew)
[mirror_ubuntu-jammy-kernel.git] / init / main.c
index 954d9b6c62c6f40b5937129884c03f4dc3303b0c..86d894852bef8b4e25cddde0967d4f08a86ab269 100644 (file)
@@ -521,6 +521,7 @@ static void __init mm_init(void)
        mem_init();
        kmem_cache_init();
        pgtable_init();
+       debug_objects_mem_init();
        vmalloc_init();
        ioremap_huge_init();
        /* Should be run before the first non-init thread is created */
@@ -697,7 +698,6 @@ asmlinkage __visible void __init start_kernel(void)
 #endif
        page_ext_init();
        kmemleak_init();
-       debug_objects_mem_init();
        setup_per_cpu_pageset();
        numa_policy_init();
        acpi_early_init();
@@ -992,17 +992,6 @@ static void __init do_pre_smp_initcalls(void)
                do_one_initcall(initcall_from_entry(fn));
 }
 
-/*
- * This function requests modules which should be loaded by default and is
- * called twice right after initrd is mounted and right before init is
- * exec'd.  If such modules are on either initrd or rootfs, they will be
- * loaded before control is passed to userland.
- */
-void __init load_default_modules(void)
-{
-       load_default_elevator_module();
-}
-
 static int run_init_process(const char *init_filename)
 {
        argv_init[0] = init_filename;
@@ -1176,5 +1165,4 @@ static noinline void __init kernel_init_freeable(void)
         */
 
        integrity_load_keys();
-       load_default_modules();
 }