mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-10-04 00:00:35 +02:00
Since the workqueue code deletes the work before executing it, checking for no work item being currently queued to the workqueue is not sufficient to guarantee that all the works have finished execution. Use a counter to guarantee that all the pending suspend_sys_sync() works have finished execution before returning from suspend_sys_sync_wait(). CRs-Fixed: 293595 Signed-off-by: Pratik Patel <pratikp@codeaurora.org> Conflicts: kernel/power/wakelock.c