mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user