Power: add an API to log wakeup reasons
authorRuchi Kandoi <kandoiruchi@google.com>
Wed, 19 Feb 2014 23:30:47 +0000 (15:30 -0800)
committerRuchi Kandoi <kandoiruchi@google.com>
Thu, 20 Feb 2014 02:43:15 +0000 (02:43 +0000)
commit520bc0723d8046c97b43c41080a425f007e89b31
treef90739e719a604036c0fb8a037d49116bada6477
parenta00e8e874da1479dfc4080974afb5b26333cb85a
Power: add an API to log wakeup reasons

Add API log_wakeup_reason() and expose it to userspace via sysfs path
/sys/kernel/wakeup_reasons/last_resume_reason

Change-Id: I81addaf420f1338255c5d0638b0d244a99d777d1
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
include/linux/wakeup_reason.h [new file with mode: 0644]
kernel/power/Makefile
kernel/power/wakeup_reason.c [new file with mode: 0644]