提交 90e63452 编写于 作者: A Axel Haslam 提交者: Rafael J. Wysocki

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: NAxel Haslam <ahaslam+renesas@baylibre.com>
Acked-by: NUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 eaa2d73e
...@@ -1523,14 +1523,8 @@ void pm_genpd_init(struct generic_pm_domain *genpd, ...@@ -1523,14 +1523,8 @@ void pm_genpd_init(struct generic_pm_domain *genpd,
} }
/* Use only one "off" state if there were no states declared */ /* Use only one "off" state if there were no states declared */
if (genpd->state_count == 0) { 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;
genpd->state_count = 1; genpd->state_count = 1;
}
mutex_lock(&gpd_list_lock); mutex_lock(&gpd_list_lock);
list_add(&genpd->gpd_list_node, &gpd_list); list_add(&genpd->gpd_list_node, &gpd_list);
......
...@@ -61,9 +61,7 @@ struct generic_pm_domain { ...@@ -61,9 +61,7 @@ struct generic_pm_domain {
unsigned int prepared_count; /* Suspend counter of prepared devices */ unsigned int prepared_count; /* Suspend counter of prepared devices */
bool suspend_power_off; /* Power status before system suspend */ bool suspend_power_off; /* Power status before system suspend */
int (*power_off)(struct generic_pm_domain *domain); int (*power_off)(struct generic_pm_domain *domain);
s64 power_off_latency_ns;
int (*power_on)(struct generic_pm_domain *domain); int (*power_on)(struct generic_pm_domain *domain);
s64 power_on_latency_ns;
struct gpd_dev_ops dev_ops; struct gpd_dev_ops dev_ops;
s64 max_off_time_ns; /* Maximum allowed "suspended" time. */ s64 max_off_time_ns; /* Maximum allowed "suspended" time. */
bool max_off_time_changed; bool max_off_time_changed;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册