|
@@ -184,6 +184,9 @@ static int suspend_enter(suspend_state_t state, bool *wakeup)
|
|
|
goto Platform_wake;
|
|
|
}
|
|
|
|
|
|
+ if (suspend_test(TEST_PLATFORM))
|
|
|
+ goto Platform_wake;
|
|
|
+
|
|
|
/*
|
|
|
* PM_SUSPEND_FREEZE equals
|
|
|
* frozen processes + suspended devices + idle processors.
|
|
@@ -195,9 +198,6 @@ static int suspend_enter(suspend_state_t state, bool *wakeup)
|
|
|
goto Platform_wake;
|
|
|
}
|
|
|
|
|
|
- if (suspend_test(TEST_PLATFORM))
|
|
|
- goto Platform_wake;
|
|
|
-
|
|
|
error = disable_nonboot_cpus();
|
|
|
if (error || suspend_test(TEST_CPUS))
|
|
|
goto Enable_cpus;
|