summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Haslam <ahaslam+renesas@baylibre.com>2016-02-15 11:10:53 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-02-15 23:18:15 +0100
commit90e63452ac3a42c9ff10b12880429e8592cf39ec (patch)
tree809deb16508ccabed2bdd9e4c328fa4622517d7a
parentARM: imx6: pm: declare pm domain latency on power_state struct (diff)
downloadlinux-90e63452ac3a42c9ff10b12880429e8592cf39ec.tar.xz
linux-90e63452ac3a42c9ff10b12880429e8592cf39ec.zip
PM / Domains: remove old power on/off latencies
Now that all known users have been converted to use state latencies, we can remove the latency field in the generic_pm_domain structure. Signed-off-by: Axel Haslam <ahaslam+renesas@baylibre.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/base/power/domain.c8
-rw-r--r--include/linux/pm_domain.h2
2 files changed, 1 insertions, 9 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 4c6f46b5c444..e8ca290dbf9d 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1523,14 +1523,8 @@ void pm_genpd_init(struct generic_pm_domain *genpd,
}
/* Use only one "off" state if there were no states declared */
- if (genpd->state_count == 0) {
- genpd->states[0].power_on_latency_ns =
- genpd->power_on_latency_ns;
- genpd->states[0].power_off_latency_ns =
- genpd->power_off_latency_ns;
-
+ if (genpd->state_count == 0)
genpd->state_count = 1;
- }
mutex_lock(&gpd_list_lock);
list_add(&genpd->gpd_list_node, &gpd_list);
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index 1726c4ac6529..49cd8890b873 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -61,9 +61,7 @@ struct generic_pm_domain {
unsigned int prepared_count; /* Suspend counter of prepared devices */
bool suspend_power_off; /* Power status before system suspend */
int (*power_off)(struct generic_pm_domain *domain);
- s64 power_off_latency_ns;
int (*power_on)(struct generic_pm_domain *domain);
- s64 power_on_latency_ns;
struct gpd_dev_ops dev_ops;
s64 max_off_time_ns; /* Maximum allowed "suspended" time. */
bool max_off_time_changed;