PM / sleep: Print active wakeup sources when blocking on wakeup_count reads
authorxing wei <xing.wei@intel.com>
Wed, 7 Dec 2016 11:31:16 +0000 (19:31 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Dec 2016 00:26:23 +0000 (01:26 +0100)
commit9320f95c0b8f1d074f570385e6855d4554f693e4
treee789238fc895e172a4c19cce4ed20c664e827e7e
parentb53f40db59b27b62bc294c30506b02a0cae47e0b
PM / sleep: Print active wakeup sources when blocking on wakeup_count reads

If there are any wakeup events being processed, read operation
on /sys/power/wakeup_count will be blocked, so print the names
of all active wakeup sources to help to find out who is preventing
system suspend from triggering.

While at it change pr_info() in pm_print_active_wakeup_sources()
to pr_debug() to avoid excessive log noise.

Signed-off-by: xing wei <xing.wei@intel.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/wakeup.c