powerpc: Use the XDABR hcall
authorMichael Neuling <mikey@neuling.org>
Wed, 5 Sep 2012 19:17:49 +0000 (19:17 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 7 Sep 2012 01:44:42 +0000 (11:44 +1000)
We never use the XDABR hcall since we check for DABR hcall first.
XDABR syscall is better since it allows us to also set the DABRX.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/setup.c

index 51ecac920dd8e4cb74e17a9086cb893ad57dc6d6..36b774442b5c6acf68d990defc75ed238156891c 100644 (file)
@@ -529,10 +529,10 @@ static void __init pSeries_init_early(void)
        if (firmware_has_feature(FW_FEATURE_LPAR))
                hvc_vio_init_early();
 #endif
-       if (firmware_has_feature(FW_FEATURE_DABR))
-               ppc_md.set_dabr = pseries_set_dabr;
-       else if (firmware_has_feature(FW_FEATURE_XDABR))
+       if (firmware_has_feature(FW_FEATURE_XDABR))
                ppc_md.set_dabr = pseries_set_xdabr;
+       else if (firmware_has_feature(FW_FEATURE_DABR))
+               ppc_md.set_dabr = pseries_set_dabr;
 
        pSeries_cmo_feature_init();
        iommu_init_early_pSeries();