Ruchi Kandoi | 45aaceb | 2014-02-19 15:30:47 -0800 | [diff] [blame] | 1 | /* |
| 2 | * include/linux/wakeup_reason.h |
| 3 | * |
| 4 | * Logs the reason which caused the kernel to resume |
| 5 | * from the suspend mode. |
| 6 | * |
| 7 | * Copyright (C) 2014 Google, Inc. |
| 8 | * This software is licensed under the terms of the GNU General Public |
| 9 | * License version 2, as published by the Free Software Foundation, and |
| 10 | * may be copied, distributed, and modified under those terms. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | */ |
| 17 | |
| 18 | #ifndef _LINUX_WAKEUP_REASON_H |
| 19 | #define _LINUX_WAKEUP_REASON_H |
| 20 | |
Ruchi Kandoi | ddd401e | 2014-10-29 10:36:27 -0700 | [diff] [blame] | 21 | #define MAX_SUSPEND_ABORT_LEN 256 |
Ruchi Kandoi | 45aaceb | 2014-02-19 15:30:47 -0800 | [diff] [blame] | 22 | |
Ruchi Kandoi | ddd401e | 2014-10-29 10:36:27 -0700 | [diff] [blame] | 23 | void log_wakeup_reason(int irq); |
Dmitry Shmidt | da1a404 | 2014-10-31 16:05:46 -0700 | [diff] [blame] | 24 | int check_wakeup_reason(int irq); |
| 25 | |
Guenter Roeck | 748bff7 | 2016-03-04 07:22:27 -0800 | [diff] [blame] | 26 | #ifdef CONFIG_SUSPEND |
| 27 | void log_suspend_abort_reason(const char *fmt, ...); |
| 28 | #else |
| 29 | static inline void log_suspend_abort_reason(const char *fmt, ...) { } |
| 30 | #endif |
| 31 | |
Ruchi Kandoi | 45aaceb | 2014-02-19 15:30:47 -0800 | [diff] [blame] | 32 | #endif /* _LINUX_WAKEUP_REASON_H */ |