powerpc: Put exception configuration in a common place
[cascardo/linux.git] / arch / powerpc / platforms / pseries / lpar.c
index 03ff986..03c732a 100644 (file)
@@ -261,24 +261,8 @@ static void pSeries_lpar_hptab_clear(void)
         * This is also called on boot when a fadump happens. In that case we
         * must not change the exception endian mode.
         */
-       if (firmware_has_feature(FW_FEATURE_SET_MODE) && !is_fadump_active()) {
-               long rc;
-
-               rc = pseries_big_endian_exceptions();
-               /*
-                * At this point it is unlikely panic() will get anything
-                * out to the user, but at least this will stop us from
-                * continuing on further and creating an even more
-                * difficult to debug situation.
-                *
-                * There is a known problem when kdump'ing, if cpus are offline
-                * the above call will fail. Rather than panicking again, keep
-                * going and hope the kdump kernel is also little endian, which
-                * it usually is.
-                */
-               if (rc && !kdump_in_progress())
-                       panic("Could not enable big endian exceptions");
-       }
+       if (firmware_has_feature(FW_FEATURE_SET_MODE) && !is_fadump_active())
+               pseries_big_endian_exceptions();
 #endif
 }