diff options
Diffstat (limited to 'include/linux/pm_wakeup.h')
-rw-r--r-- | include/linux/pm_wakeup.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/linux/pm_wakeup.h b/include/linux/pm_wakeup.h index d9f05113e5fb..569781faa504 100644 --- a/include/linux/pm_wakeup.h +++ b/include/linux/pm_wakeup.h | |||
@@ -33,12 +33,15 @@ | |||
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 | * @prevent_sleep_time: Total time this source has been preventing autosleep. | ||
37 | * @event_count: Number of signaled wakeup events. | 38 | * @event_count: Number of signaled wakeup events. |
38 | * @active_count: Number of times the wakeup sorce was activated. | 39 | * @active_count: Number of times the wakeup sorce was activated. |
39 | * @relax_count: Number of times the wakeup sorce was deactivated. | 40 | * @relax_count: Number of times the wakeup sorce was deactivated. |
40 | * @hit_count: Number of times the wakeup sorce might abort system suspend. | 41 | * @expire_count: Number of times the wakeup source's timeout has expired. |
42 | * @wakeup_count: Number of times the wakeup source might abort suspend. | ||
41 | * @active: Status of the wakeup source. | 43 | * @active: Status of the wakeup source. |
44 | * @has_timeout: The wakeup source has been activated with a timeout. | ||
42 | */ | 45 | */ |
43 | struct wakeup_source { | 46 | struct wakeup_source { |
44 | const char *name; | 47 | const char *name; |
@@ -49,11 +52,15 @@ struct wakeup_source { | |||
49 | ktime_t total_time; | 52 | ktime_t total_time; |
50 | ktime_t max_time; | 53 | ktime_t max_time; |
51 | ktime_t last_time; | 54 | ktime_t last_time; |
55 | ktime_t start_prevent_time; | ||
56 | ktime_t prevent_sleep_time; | ||
52 | unsigned long event_count; | 57 | unsigned long event_count; |
53 | unsigned long active_count; | 58 | unsigned long active_count; |
54 | unsigned long relax_count; | 59 | unsigned long relax_count; |
55 | unsigned long hit_count; | 60 | unsigned long expire_count; |
56 | unsigned int active:1; | 61 | unsigned long wakeup_count; |
62 | bool active:1; | ||
63 | bool autosleep_enabled:1; | ||
57 | }; | 64 | }; |
58 | 65 | ||
59 | #ifdef CONFIG_PM_SLEEP | 66 | #ifdef CONFIG_PM_SLEEP |