OSDN Git Service

ANDROID: Power: add an API to log wakeup reasons
authorRuchi Kandoi <kandoiruchi@google.com>
Wed, 19 Feb 2014 23:30:47 +0000 (15:30 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 27 Jan 2017 21:51:47 +0000 (13:51 -0800)
commit6acefbee87ffaebacf4ee7ac2fc52a6117f9a40a
tree3ccb98faf95749113d04585108e891ba675fe95d
parent25c6a63c469f80f7d78a6e971fb4252696841c4f
ANDROID: 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]