diff options
-rw-r--r-- | kernel/power/suspend_test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/power/suspend_test.c b/kernel/power/suspend_test.c index bd91bc177c93..379f36de348a 100644 --- a/kernel/power/suspend_test.c +++ b/kernel/power/suspend_test.c | |||
@@ -100,7 +100,14 @@ static void __init test_wakealarm(struct rtc_device *rtc, suspend_state_t state) | |||
100 | if (state == PM_SUSPEND_STANDBY) { | 100 | if (state == PM_SUSPEND_STANDBY) { |
101 | printk(info_test, pm_states[state]); | 101 | printk(info_test, pm_states[state]); |
102 | status = pm_suspend(state); | 102 | status = pm_suspend(state); |
103 | if (status < 0) | ||
104 | state = PM_SUSPEND_FREEZE; | ||
103 | } | 105 | } |
106 | if (state == PM_SUSPEND_FREEZE) { | ||
107 | printk(info_test, pm_states[state]); | ||
108 | status = pm_suspend(state); | ||
109 | } | ||
110 | |||
104 | if (status < 0) | 111 | if (status < 0) |
105 | printk(err_suspend, status); | 112 | printk(err_suspend, status); |
106 | 113 | ||