Message ID | 1455023751-32521-4-git-send-email-ahaslam@baylibre.com (mailing list archive) |
---|---|
State | RFC, archived |
Headers | show |
On 9 February 2016 at 14:15, <ahaslam@baylibre.com> wrote: > From: Axel Haslam <ahaslam+renesas@baylibre.com> > > 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> Kind regards Uffe > --- > drivers/base/power/domain.c | 6 ------ > include/linux/pm_domain.h | 2 -- > 2 files changed, 8 deletions(-) > > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c > index 7099eb3..c4b3e36 100644 > --- a/drivers/base/power/domain.c > +++ b/drivers/base/power/domain.c > @@ -1230,12 +1230,6 @@ static int genpd_alloc_default_state(struct generic_pm_domain *genpd) > goto err; > } > > - 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_idx = 0; > > diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h > index a5c3b68..2cc75d8 100644 > --- a/include/linux/pm_domain.h > +++ b/include/linux/pm_domain.h > @@ -59,9 +59,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; > -- > 2.6.3 > -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 7099eb3..c4b3e36 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1230,12 +1230,6 @@ static int genpd_alloc_default_state(struct generic_pm_domain *genpd) goto err; } - 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_idx = 0; diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index a5c3b68..2cc75d8 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -59,9 +59,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;