Power: add an API to log wakeup reasons
authorRuchi Kandoi <kandoiruchi@google.com>
Wed, 19 Feb 2014 23:30:47 +0000 (15:30 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:35 +0000 (13:53 -0800)
commitabcb8499acaef3fa9d650bea13272b01e90ffa7e
treee54f0835b70bc89456484c59fc0865b0d3ba8094
parent1eff8f99f9f9418d399fb41c234a4e2675bc7e87
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]