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)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:38:15 +0000 (21:38 -0800)
commit3840df53cda29bd78dc10fdfe371579c3455893b
tree2cba7b5f16fe6b17f2b0d65d230449bda6633933
parent32b0858996b465913dfde49aa2c568dc273fd47c
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