aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_domain.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-08-25 09:34:12 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2011-08-25 09:34:12 -0400
commit4605ab653c1f9d7cc2dda8033de215c9cee325f4 (patch)
tree8f55aa3137973ce2a3ef0ed49c44304e148d50fe /include/linux/pm_domain.h
parentef27bed1870dbd5fd363ff5ec51eebd5a695e277 (diff)
PM / Domains: Use power.sybsys_data to reduce overhead
Currently pm_genpd_runtime_resume() has to walk the list of devices from the device's PM domain to find the corresponding device list object containing the need_restore field to check if the driver's .runtime_resume() callback should be executed for the device. This is suboptimal and can be simplified by using power.sybsys_data to store device information used by the generic PM domains code. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/pm_domain.h')
-rw-r--r--include/linux/pm_domain.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index bf679f59f9a8..5cce46c2d926 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -61,12 +61,6 @@ struct gpd_link {
61 struct list_head slave_node; 61 struct list_head slave_node;
62}; 62};
63 63
64struct dev_list_entry {
65 struct list_head node;
66 struct device *dev;
67 bool need_restore;
68};
69
70#ifdef CONFIG_PM_GENERIC_DOMAINS 64#ifdef CONFIG_PM_GENERIC_DOMAINS
71extern int pm_genpd_add_device(struct generic_pm_domain *genpd, 65extern int pm_genpd_add_device(struct generic_pm_domain *genpd,
72 struct device *dev); 66 struct device *dev);