mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 11:56:48 +00:00
PM / sleep: Support freeze as test_suspend option
Added freeze as one of the option for test_suspend boot param. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
2b4f43131d
commit
bc7115b144
@ -100,7 +100,14 @@ static void __init test_wakealarm(struct rtc_device *rtc, suspend_state_t state)
|
|||||||
if (state == PM_SUSPEND_STANDBY) {
|
if (state == PM_SUSPEND_STANDBY) {
|
||||||
printk(info_test, pm_states[state]);
|
printk(info_test, pm_states[state]);
|
||||||
status = pm_suspend(state);
|
status = pm_suspend(state);
|
||||||
|
if (status < 0)
|
||||||
|
state = PM_SUSPEND_FREEZE;
|
||||||
}
|
}
|
||||||
|
if (state == PM_SUSPEND_FREEZE) {
|
||||||
|
printk(info_test, pm_states[state]);
|
||||||
|
status = pm_suspend(state);
|
||||||
|
}
|
||||||
|
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
printk(err_suspend, status);
|
printk(err_suspend, status);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user