diff options
author | Axel Haslam <ahaslam+renesas@baylibre.com> | 2016-02-15 11:10:53 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-02-15 23:18:15 +0100 |
commit | 90e63452ac3a42c9ff10b12880429e8592cf39ec (patch) | |
tree | 809deb16508ccabed2bdd9e4c328fa4622517d7a /drivers/base/power/domain.c | |
parent | eaa2d73ef9985f9e0fee7c3f04268c729100498d (diff) | |
download | op-kernel-dev-90e63452ac3a42c9ff10b12880429e8592cf39ec.zip op-kernel-dev-90e63452ac3a42c9ff10b12880429e8592cf39ec.tar.gz |
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>
Diffstat (limited to 'drivers/base/power/domain.c')
-rw-r--r-- | drivers/base/power/domain.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 4c6f46b..e8ca290 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); |