aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_domain.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pm_domain.h')
-rw-r--r--include/linux/pm_domain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index c71457cb8a79..feb80af4cc1b 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -14,6 +14,7 @@
14enum gpd_status { 14enum gpd_status {
15 GPD_STATE_ACTIVE = 0, /* PM domain is active */ 15 GPD_STATE_ACTIVE = 0, /* PM domain is active */
16 GPD_STATE_BUSY, /* Something is happening to the PM domain */ 16 GPD_STATE_BUSY, /* Something is happening to the PM domain */
17 GPD_STATE_REPEAT, /* Power off in progress, to be repeated */
17 GPD_STATE_POWER_OFF, /* PM domain is off */ 18 GPD_STATE_POWER_OFF, /* PM domain is off */
18}; 19};
19 20
@@ -34,6 +35,8 @@ struct generic_pm_domain {
34 unsigned int sd_count; /* Number of subdomains with power "on" */ 35 unsigned int sd_count; /* Number of subdomains with power "on" */
35 enum gpd_status status; /* Current state of the domain */ 36 enum gpd_status status; /* Current state of the domain */
36 wait_queue_head_t status_wait_queue; 37 wait_queue_head_t status_wait_queue;
38 struct task_struct *poweroff_task; /* Powering off task */
39 unsigned int resume_count; /* Number of devices being resumed */
37 unsigned int device_count; /* Number of devices */ 40 unsigned int device_count; /* Number of devices */
38 unsigned int suspended_count; /* System suspend device counter */ 41 unsigned int suspended_count; /* System suspend device counter */
39 unsigned int prepared_count; /* Suspend counter of prepared devices */ 42 unsigned int prepared_count; /* Suspend counter of prepared devices */