Calling s2idle_wake() once after pm_abort_suspend is incremented is all that's needed to wake up from s2idle. Avoid multiple unnecessary attempts to wake from s2idle by only doing the wakeup when pm_abort_suspend hits 1. The s2idle machinery already provides the synchronization needed to make this safe. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Change-Id: I789857351353737f7199a8df5c5ba210050352e6fourteen
parent
c09e657655
commit
5e0188e271
Loading…
Reference in new issue