power: wakelock: Print active wakelocks when has_wake_lock() is called
authorMike Chan <mike@android.com>
Tue, 16 Feb 2010 22:18:55 +0000 (14:18 -0800)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:27 +0000 (09:09 -0700)
commitaf62b25adba1fe01c91aa88c95d1584371ab2bf9
treeb03c0757132204a2e7a423f17f6319ca32e30624
parent617a3dcb3fc460098b5347b9c49ff59ce6f4b05d
power: wakelock: Print active wakelocks when has_wake_lock() is called

When DEBUG_SUSPEND is enabled print active wakelocks when we check
if there are any active wakelocks.

In print_active_locks(), print expired wakelocks if DEBUG_EXPIRE is enabled

Change-Id: Ib1cb795555e71ff23143a2bac7c8a58cbce16547
Signed-off-by: Mike Chan <mike@android.com>
kernel/power/wakelock.c