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)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:41 +0000 (13:53 -0800)
commitb100279a6d50ea3d8b23a7c0ee65b4080d6ae0d8
treefd53f081365cadd39bb8532c9d3e09764f225da6
parent1cc3aac268e3ad3511f7e55f993f90cda426e7dd
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