aboutsummaryrefslogtreecommitdiff
path: root/lib/memory_alloc.c
diff options
context:
space:
mode:
authorPratik Patel <pratikp@codeaurora.org>2011-07-21 19:13:34 -0700
committerStephen Boyd <sboyd@codeaurora.org>2013-02-20 01:32:15 -0800
commit2da9b910c020e56c8dc5e9eb778e37379c5bb732 (patch)
treec92dace77715a1c14f81d761793e29882af2c20c /lib/memory_alloc.c
parent77c5678ea806a84e81f8d55715bf47c626ed70b9 (diff)
power: fix suspend_sys_sync_wait()
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 (cherry picked from commit 529461b70c7dc20b0371e54a63844edae905d7a2) Conflicts: kernel/power/wakelock.c Change-Id: I501743b6b76e492e1598df83ebc1178835ae8405
Diffstat (limited to 'lib/memory_alloc.c')
0 files changed, 0 insertions, 0 deletions