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>
Thu, 30 Sep 2010 00:49:28 +0000 (17:49 -0700)
commit4006c25811f99f8a963250ae69a556db1cde235e
treeb7c64bd0d0190b1e105203faecd219264099f0e4
parent20098313bab5c2949663136ac234274efee1c737
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