summaryrefslogtreecommitdiffstats
path: root/media/libeffects/lvm
diff options
context:
space:
mode:
authorJimmy Dalqvist <jimmy.dalqvist@sonymobile.com>2014-01-14 14:13:52 +0100
committerTakeshi Aimi <takeshi.aimi@sonymobile.com>2014-01-22 15:47:38 +0900
commit5163c2ef5fe11c9b10d230691ef429035da4c788 (patch)
tree951999fe49578daaa7386193849b578c3fa6c9ab /media/libeffects/lvm
parent96a7b5a9c87ec3f8cadad5bffc06a82f9f4d86d8 (diff)
downloadframeworks_av-5163c2ef5fe11c9b10d230691ef429035da4c788.zip
frameworks_av-5163c2ef5fe11c9b10d230691ef429035da4c788.tar.gz
frameworks_av-5163c2ef5fe11c9b10d230691ef429035da4c788.tar.bz2
Only increase the counter when we do take a wakelock
We keep track on how many wakelocks we have taken. We always just take one real wakelock but increase / decrease the counter every time we try to acquire / release a wakelock. The counter is always increased even if the power manager is not ready, leading to an incorrect counter that could cause a crash when we try to release it. Make sure we only increase the counter when a wakelock, real or counted, is taken. Change-Id: Iad940e052694932f1dad8a1a71fa63601d289d6a
Diffstat (limited to 'media/libeffects/lvm')
0 files changed, 0 insertions, 0 deletions