powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU
[linux-2.6-block.git] / arch / powerpc / kernel / setup_64.c
index 9a493796ce66da5f571c15cc324e77fb603522c9..703a2e6ab08da6d377b1a782d5c105fb7ccb86db 100644 (file)
@@ -886,7 +886,7 @@ void __init setup_per_cpu_areas(void)
                atom_size = SZ_1M;
        } else if (radix_enabled()) {
                atom_size = PAGE_SIZE;
-       } else {
+       } else if (IS_ENABLED(CONFIG_PPC_64S_HASH_MMU)) {
                /*
                 * Linear mapping is one of 4K, 1M and 16M.  For 4K, no need
                 * to group units.  For larger mappings, use 1M atom which