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)
committerTodd Poynor <toddpoynor@google.com>
Tue, 9 Aug 2011 02:03:09 +0000 (19:03 -0700)
commited27e538aa97278e26a6c00f14f6e2e076a1a2ae
treee093cde0093c10dd6b2f070fc6aa1a3f4967e436
parentb7a82d40f1d9dc7a69281fc3b2a42a489f2a1619
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