Message ID | 87r0fg5ocg.fsf@somnus |
---|---|
State | New |
Headers | show |
Series | [v2] PM: s2idle: Make sure CPUs will wakeup directly on resume | expand |
--- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c @@ -106,6 +106,12 @@ static void s2idle_enter(void) swait_event_exclusive(s2idle_wait_head, s2idle_state == S2IDLE_STATE_WAKE); + /* + * Kick all CPUs to ensure that they resume their timers and restore + * consistent system state. + */ + wake_up_all_idle_cpus(); + cpus_read_unlock(); raw_spin_lock_irq(&s2idle_lock);