diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pm_wakeup.h | 4 | ||||
-rw-r--r-- | include/linux/suspend.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pm_wakeup.h b/include/linux/pm_wakeup.h index 5285317a612a..569781faa504 100644 --- a/include/linux/pm_wakeup.h +++ b/include/linux/pm_wakeup.h | |||
@@ -34,6 +34,7 @@ | |||
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 touched 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. |
@@ -51,12 +52,15 @@ struct wakeup_source { | |||
51 | ktime_t total_time; | 52 | ktime_t total_time; |
52 | ktime_t max_time; | 53 | ktime_t max_time; |
53 | ktime_t last_time; | 54 | ktime_t last_time; |
55 | ktime_t start_prevent_time; | ||
56 | ktime_t prevent_sleep_time; | ||
54 | unsigned long event_count; | 57 | unsigned long event_count; |
55 | unsigned long active_count; | 58 | unsigned long active_count; |
56 | unsigned long relax_count; | 59 | unsigned long relax_count; |
57 | unsigned long expire_count; | 60 | unsigned long expire_count; |
58 | unsigned long wakeup_count; | 61 | unsigned long wakeup_count; |
59 | bool active:1; | 62 | bool active:1; |
63 | bool autosleep_enabled:1; | ||
60 | }; | 64 | }; |
61 | 65 | ||
62 | #ifdef CONFIG_PM_SLEEP | 66 | #ifdef CONFIG_PM_SLEEP |
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 76b7ec7d3a81..cd83059fb592 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h | |||
@@ -358,6 +358,7 @@ extern bool events_check_enabled; | |||
358 | extern bool pm_wakeup_pending(void); | 358 | extern bool pm_wakeup_pending(void); |
359 | extern bool pm_get_wakeup_count(unsigned int *count, bool block); | 359 | extern bool pm_get_wakeup_count(unsigned int *count, bool block); |
360 | extern bool pm_save_wakeup_count(unsigned int count); | 360 | extern bool pm_save_wakeup_count(unsigned int count); |
361 | extern void pm_wakep_autosleep_enabled(bool set); | ||
361 | 362 | ||
362 | static inline void lock_system_sleep(void) | 363 | static inline void lock_system_sleep(void) |
363 | { | 364 | { |