soc: rockchip: pm_config: do pm_wakeup_clear when virtual poweroff

pm_wakeup_pending will return 1 after system wakeup, witch makes
the failure of disable_secondary_cpus when virtual poweroff.
So we need to do pm_wakeup_clear before disable_secondary_cpus.

Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I96722898d22cd2c2ad8229e44b9ecbfa9024a2e4
This commit is contained in:
XiaoDong Huang
2023-09-25 10:43:19 +08:00
parent 2e8f56f6a5
commit c2ce041510

View File

@@ -103,6 +103,8 @@ static void rockchip_pm_virt_pwroff_prepare(void)
{
int error;
pm_wakeup_clear(0);
regulator_suspend_prepare(PM_SUSPEND_MEM);
error = suspend_disable_secondary_cpus();