diff options
| author | Ruchi Kandoi <kandoiruchi@google.com> | 2014-02-19 15:30:47 -0800 |
|---|---|---|
| committer | Ruchi Kandoi <kandoiruchi@google.com> | 2014-02-20 02:43:15 +0000 |
| commit | 520bc0723d8046c97b43c41080a425f007e89b31 (patch) | |
| tree | f90739e719a604036c0fb8a037d49116bada6477 /include/linux/wakeup_reason.h | |
| parent | a00e8e874da1479dfc4080974afb5b26333cb85a (diff) | |
| download | olio-linux-3.10-520bc0723d8046c97b43c41080a425f007e89b31.tar.xz olio-linux-3.10-520bc0723d8046c97b43c41080a425f007e89b31.zip | |
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>
Diffstat (limited to 'include/linux/wakeup_reason.h')
| -rw-r--r-- | include/linux/wakeup_reason.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/wakeup_reason.h b/include/linux/wakeup_reason.h new file mode 100644 index 00000000000..7ce50f0debc --- /dev/null +++ b/include/linux/wakeup_reason.h @@ -0,0 +1,23 @@ +/* + * include/linux/wakeup_reason.h + * + * Logs the reason which caused the kernel to resume + * from the suspend mode. + * + * Copyright (C) 2014 Google, Inc. + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef _LINUX_WAKEUP_REASON_H +#define _LINUX_WAKEUP_REASON_H + +void log_wakeup_reason(int irq); + +#endif /* _LINUX_WAKEUP_REASON_H */ |