aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_wakeup.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pm_wakeup.h')
-rw-r--r--include/linux/pm_wakeup.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/pm_wakeup.h b/include/linux/pm_wakeup.h
index d9f05113e5fb..5285317a612a 100644
--- a/include/linux/pm_wakeup.h
+++ b/include/linux/pm_wakeup.h
@@ -33,12 +33,14 @@
33 * 33 *
34 * @total_time: Total time this wakeup source has been active. 34 * @total_time: Total time this wakeup source has been active.
35 * @max_time: Maximum time this wakeup source has been continuously active. 35 * @max_time: Maximum time this wakeup source has been continuously active.
36 * @last_time: Monotonic clock when the wakeup source's was activated last time. 36 * @last_time: Monotonic clock when the wakeup source's was touched last time.
37 * @event_count: Number of signaled wakeup events. 37 * @event_count: Number of signaled wakeup events.
38 * @active_count: Number of times the wakeup sorce was activated. 38 * @active_count: Number of times the wakeup sorce was activated.
39 * @relax_count: Number of times the wakeup sorce was deactivated. 39 * @relax_count: Number of times the wakeup sorce was deactivated.
40 * @hit_count: Number of times the wakeup sorce might abort system suspend. 40 * @expire_count: Number of times the wakeup source's timeout has expired.
41 * @wakeup_count: Number of times the wakeup source might abort suspend.
41 * @active: Status of the wakeup source. 42 * @active: Status of the wakeup source.
43 * @has_timeout: The wakeup source has been activated with a timeout.
42 */ 44 */
43struct wakeup_source { 45struct wakeup_source {
44 const char *name; 46 const char *name;
@@ -52,8 +54,9 @@ struct wakeup_source {
52 unsigned long event_count; 54 unsigned long event_count;
53 unsigned long active_count; 55 unsigned long active_count;
54 unsigned long relax_count; 56 unsigned long relax_count;
55 unsigned long hit_count; 57 unsigned long expire_count;
56 unsigned int active:1; 58 unsigned long wakeup_count;
59 bool active:1;
57}; 60};
58 61
59#ifdef CONFIG_PM_SLEEP 62#ifdef CONFIG_PM_SLEEP