OSDN Git Service

Power: add an API to log wakeup reasons
authorRuchi Kandoi <kandoiruchi@google.com>
Wed, 19 Feb 2014 23:30:47 +0000 (15:30 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 13 Dec 2014 15:14:11 +0000 (23:14 +0800)
commit5f97af15c0b949b866615a5b0f2a5b80ec48f223
tree7c84cde99bb36473e4926dc4e2b1f321e00f2dc6
parent001494cdd425e614755d7480a60d355d36315ebe
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]