PM: wakelocks: Don't report wake up wakelock if suspend aborted
authorTodd Poynor <toddpoynor@google.com>
Tue, 9 Aug 2011 00:26:49 +0000 (17:26 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:38:58 +0000 (21:38 -0800)
commit2b2f237feabf4f162525c77e597e088bdd41c632
tree33411f9544dbfb6b9c078ed96ece57b589f2527b
parent0930f16afe839b2f29e234f29620ba3cac0cfddf
PM: wakelocks: Don't report wake up wakelock if suspend aborted

If the wakelock driver aborts suspend due to an already-held
wakelock, don't report the next wakelock held as the "wake up
wakelock".

Change-Id: I582ffbb87a3c361739a77d839a0c62921cff11a6
Signed-off-by: Todd Poynor <toddpoynor@google.com>
kernel/power/wakelock.c