]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - init/main.c
x86/mm: Initialize PGD cache during mm initialization
[mirror_ubuntu-focal-kernel.git] / init / main.c
index 95dd9406ee31ed386d5a1be83bc2309566831452..9dc2f3b4f753270fc31e69bb539102b35ead3341 100644 (file)
@@ -506,6 +506,8 @@ void __init __weak mem_encrypt_init(void) { }
 
 void __init __weak poking_init(void) { }
 
+void __init __weak pgd_cache_init(void) { }
+
 bool initcall_debug;
 core_param(initcall_debug, initcall_debug, bool, 0644);
 
@@ -537,6 +539,7 @@ static void __init mm_init(void)
        init_espfix_bsp();
        /* Should be run after espfix64 is set up. */
        pti_init();
+       pgd_cache_init();
 }
 
 void __init __weak arch_call_rest_init(void)