powerpc: query dynamic DEBUG_PAGEALLOC setting
[cascardo/linux.git] / arch / powerpc / mm / init_32.c
index a10be66..c2b7716 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;
+       }
 }
 
 /*