diff options
author | Todd Poynor <toddpoynor@google.com> | 2011-08-08 16:06:54 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2011-08-10 16:14:56 -0700 |
commit | ca64b0cd3a12d7704f4e98f4f5d51f41eb5047a2 (patch) | |
tree | 62f9b1336ec14d087f19a4cb770b4edf92bcaead /kernel/power | |
parent | e65d9fe5564afaca75ae657179446578be73e9ba (diff) | |
download | kernel_samsung_tuna-ca64b0cd3a12d7704f4e98f4f5d51f41eb5047a2.zip kernel_samsung_tuna-ca64b0cd3a12d7704f4e98f4f5d51f41eb5047a2.tar.gz kernel_samsung_tuna-ca64b0cd3a12d7704f4e98f4f5d51f41eb5047a2.tar.bz2 |
PM: wakelocks: Display wakelocks preventing suspend by default
Use DEBUG_WAKEUP flag to show wakelocks that abort suspend, in
addition to showing wakelocks held during system resume.
DEBUG_WAKEUP is enabled by default.
Change-Id: If6fa68e8afbc482a5300ffab2964694b02b34f41
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/wakelock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/wakelock.c b/kernel/power/wakelock.c index d45df2b..2ee459f 100644 --- a/kernel/power/wakelock.c +++ b/kernel/power/wakelock.c @@ -249,7 +249,7 @@ long has_wake_lock(int type) unsigned long irqflags; spin_lock_irqsave(&list_lock, irqflags); ret = has_wake_lock_locked(type); - if (ret && (debug_mask & DEBUG_SUSPEND) && type == WAKE_LOCK_SUSPEND) + if (ret && (debug_mask & DEBUG_WAKEUP) && type == WAKE_LOCK_SUSPEND) print_active_locks(type); spin_unlock_irqrestore(&list_lock, irqflags); return ret; |