Message ID | 7df8dcd0-c242-5001-b31b-4192afdf7a68@kylinos.cn (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [V2] power: add PM_SUSPEND_MAX in pm_suspend_target_state | expand |
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index 1f87aa01ba44..c7c0e7c51985 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -766,6 +766,8 @@ int hibernate(void) } pr_info("hibernation entry\n"); + pm_suspend_target_state = PM_SUSPEND_MAX; + pm_prepare_console(); error = pm_notifier_call_chain_robust(PM_HIBERNATION_PREPARE, PM_POST_HIBERNATION);