Merge branch 'akpm' (patches from Andrew)
[platform/kernel/linux-rpi.git] / arch / powerpc / mm / init_64.c
index 3fd504d..02e127f 100644 (file)
@@ -406,13 +406,15 @@ static void __init early_check_vec5(void)
                }
                if (!(vec5[OV5_INDX(OV5_RADIX_GTSE)] &
                                                OV5_FEAT(OV5_RADIX_GTSE))) {
-                       pr_warn("WARNING: Hypervisor doesn't support RADIX with GTSE\n");
-               }
+                       cur_cpu_spec->mmu_features &= ~MMU_FTR_GTSE;
+               } else
+                       cur_cpu_spec->mmu_features |= MMU_FTR_GTSE;
                /* Do radix anyway - the hypervisor said we had to */
                cur_cpu_spec->mmu_features |= MMU_FTR_TYPE_RADIX;
        } else if (mmu_supported == OV5_FEAT(OV5_MMU_HASH)) {
                /* Hypervisor only supports hash - disable radix */
                cur_cpu_spec->mmu_features &= ~MMU_FTR_TYPE_RADIX;
+               cur_cpu_spec->mmu_features &= ~MMU_FTR_GTSE;
        }
 }