summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2014-10-31 16:05:46 -0700
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:53:39 -0800
commitdd0c7788b67fed52d2d2b9893f7290e3c63757b8 (patch)
tree0185a93d2524e4d16dc95f8b66249a2de7e5508f /include
parent57caa2ad5ce35bedb7ab374a2e5b4d7adf63da2b (diff)
power: Add check_wakeup_reason() to verify wakeup source irq
Wakeup reason is set before driver resume handlers are called. It is cleared before driver suspend handlers are called, on PM_SUSPEND_PREPARE. Change-Id: I04218c9b0c115a7877e8029c73e6679ff82e0aa4 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/wakeup_reason.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/wakeup_reason.h b/include/linux/wakeup_reason.h
index 5f095da2c977..ad8b76936c7f 100644
--- a/include/linux/wakeup_reason.h
+++ b/include/linux/wakeup_reason.h
@@ -22,4 +22,6 @@
void log_wakeup_reason(int irq);
void log_suspend_abort_reason(const char *fmt, ...);
+int check_wakeup_reason(int irq);
+
#endif /* _LINUX_WAKEUP_REASON_H */