arm64: initialize pgprot info earlier in boot
[linux.git] / arch / arm64 / mm / mmu.c
index f8dc7e8fce6fea147a9842824a8046822b70b180..ba259a0e385ebad9bfcadb050f8ba4c8c6420f43 100644 (file)
@@ -125,7 +125,7 @@ early_param("cachepolicy", early_cachepolicy);
 /*
  * Adjust the PMD section entries according to the CPU in use.
  */
-static void __init init_mem_pgprot(void)
+void __init init_mem_pgprot(void)
 {
        pteval_t default_pgprot;
        int i;
@@ -357,7 +357,6 @@ void __init paging_init(void)
 {
        void *zero_page;
 
-       init_mem_pgprot();
        map_mem();
 
        /*