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 13:12:50 +0000 (21:12 +0800)
commit4c5d4abda06d6ef75e594450e42d1dc1e6f424d5
tree974a0b950e47eaa7bfb4f1bba0a3f53abdb1ee8f
parent037b524c00d464cac688510b083606cd1879e783
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]