[PATCH] powerpc: Replace platform_is_lpar() with a firmware feature
[deliverable/linux.git] / arch / powerpc / mm / hash_utils_64.c
index 7b4eccffd002275f5d0aff0a0c731e50469eb091..89b35c1813141c41172295325d8684c4d88c568b 100644 (file)
@@ -422,7 +422,7 @@ void __init htab_initialize(void)
 
        htab_hash_mask = pteg_count - 1;
 
-       if (platform_is_lpar()) {
+       if (firmware_has_feature(FW_FEATURE_LPAR)) {
                /* Using a hypervisor which owns the htab */
                htab_address = NULL;
                _SDR1 = 0; 
@@ -517,7 +517,7 @@ void __init htab_initialize(void)
 
 void htab_initialize_secondary(void)
 {
-       if (!platform_is_lpar())
+       if (!firmware_has_feature(FW_FEATURE_LPAR))
                mtspr(SPRN_SDR1, _SDR1);
 }
 
This page took 0.024657 seconds and 5 git commands to generate.