aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r--include/linux/pm.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h
index 18de9f893497..f497ed06ee15 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -423,6 +423,22 @@ enum rpm_request {
423 423
424struct wakeup_source; 424struct wakeup_source;
425 425
426struct pm_domain_data {
427 struct list_head list_node;
428 struct device *dev;
429};
430
431struct pm_subsys_data {
432 spinlock_t lock;
433 unsigned int refcount;
434#ifdef CONFIG_PM_CLK
435 struct list_head clock_list;
436#endif
437#ifdef CONFIG_PM_GENERIC_DOMAINS
438 struct pm_domain_data *domain_data;
439#endif
440};
441
426struct dev_pm_info { 442struct dev_pm_info {
427 pm_message_t power_state; 443 pm_message_t power_state;
428 unsigned int can_wakeup:1; 444 unsigned int can_wakeup:1;
@@ -464,10 +480,12 @@ struct dev_pm_info {
464 unsigned long suspended_jiffies; 480 unsigned long suspended_jiffies;
465 unsigned long accounting_timestamp; 481 unsigned long accounting_timestamp;
466#endif 482#endif
467 void *subsys_data; /* Owned by the subsystem. */ 483 struct pm_subsys_data *subsys_data; /* Owned by the subsystem. */
468}; 484};
469 485
470extern void update_pm_runtime_accounting(struct device *dev); 486extern void update_pm_runtime_accounting(struct device *dev);
487extern int dev_pm_get_subsys_data(struct device *dev);
488extern int dev_pm_put_subsys_data(struct device *dev);
471 489
472/* 490/*
473 * Power domains provide callbacks that are executed during system suspend, 491 * Power domains provide callbacks that are executed during system suspend,