wakeup: Add last wake up source logging for suspend abort reason.
authorRuchi Kandoi <kandoiruchi@google.com>
Wed, 8 Apr 2015 22:42:29 +0000 (15:42 -0700)
committerRuchi Kandoi <kandoiruchi@google.com>
Tue, 14 Apr 2015 00:18:04 +0000 (00:18 +0000)
commitc8b4bc552cef9e24427b12fee8763d1702f8d57a
tree0e3e9ee02a6547ff782e489250a923dd2b8b9a01
parent53be74a0138bc0e8be644b445321210b1d77217d
wakeup: Add last wake up source logging for suspend abort reason.

There is a possibility that a wakeup source event is received after
the device prepares to suspend which might cause the suspend to abort.

This patch adds the functionality of reporting the last active wakeup
source which is currently not active but caused the suspend to abort reason
via the /sys/kernel/power/last_wakeup_reason file.

Change-Id: I1760d462f497b33e425f5565cb6cff5973932ec3
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
drivers/base/power/wakeup.c