]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/powerpc/mm/init_32.c
powerpc: query dynamic DEBUG_PAGEALLOC setting
[linux-beck.git] / arch / powerpc / mm / init_32.c
index a10be665b645fc3e85a4e3ee3bbcfb69a67ddc5a..c2b771614d4fe173659b1df162d68cc27ba0e062 100644 (file)
@@ -112,10 +112,10 @@ void __init MMU_setup(void)
        if (strstr(boot_command_line, "noltlbs")) {
                __map_without_ltlbs = 1;
        }
-#ifdef CONFIG_DEBUG_PAGEALLOC
-       __map_without_bats = 1;
-       __map_without_ltlbs = 1;
-#endif
+       if (debug_pagealloc_enabled()) {
+               __map_without_bats = 1;
+               __map_without_ltlbs = 1;
+       }
 }
 
 /*