diff options
| -rw-r--r-- | arch/powerpc/platforms/pseries/setup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 3e2f7467057d..042ecae107ac 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
| @@ -422,11 +422,6 @@ static int __init pSeries_probe_hypertas(unsigned long node, | |||
| 422 | if (of_get_flat_dt_prop(node, "ibm,hypertas-functions", NULL) != NULL) | 422 | if (of_get_flat_dt_prop(node, "ibm,hypertas-functions", NULL) != NULL) |
| 423 | powerpc_firmware_features |= FW_FEATURE_LPAR; | 423 | powerpc_firmware_features |= FW_FEATURE_LPAR; |
| 424 | 424 | ||
| 425 | if (firmware_has_feature(FW_FEATURE_LPAR)) | ||
| 426 | hpte_init_lpar(); | ||
| 427 | else | ||
| 428 | hpte_init_native(); | ||
| 429 | |||
| 430 | return 1; | 425 | return 1; |
| 431 | } | 426 | } |
| 432 | 427 | ||
| @@ -452,6 +447,11 @@ static int __init pSeries_probe(void) | |||
| 452 | /* Now try to figure out if we are running on LPAR */ | 447 | /* Now try to figure out if we are running on LPAR */ |
| 453 | of_scan_flat_dt(pSeries_probe_hypertas, NULL); | 448 | of_scan_flat_dt(pSeries_probe_hypertas, NULL); |
| 454 | 449 | ||
| 450 | if (firmware_has_feature(FW_FEATURE_LPAR)) | ||
| 451 | hpte_init_lpar(); | ||
| 452 | else | ||
| 453 | hpte_init_native(); | ||
| 454 | |||
| 455 | DBG("Machine is%s LPAR !\n", | 455 | DBG("Machine is%s LPAR !\n", |
| 456 | (powerpc_firmware_features & FW_FEATURE_LPAR) ? "" : " not"); | 456 | (powerpc_firmware_features & FW_FEATURE_LPAR) ? "" : " not"); |
| 457 | 457 | ||
