From: ahaslam@baylibre.com
To: ulf.hansson@linaro.org, lina.iyer@linaro.org
Cc: khilman@baylibre.com, linux-pm@vger.kernel.org,
geert@linux-m68k.org, mtitinger@baylibre.com, rjw@rjwysocki.net,
bcousson@baylibre.com, Axel Haslam <ahaslam+renesas@baylibre.com>
Subject: [RFC v11 3/3] PM / Domains: remove old power on/off latencies.
Date: Tue, 9 Feb 2016 14:15:51 +0100 [thread overview]
Message-ID: <1455023751-32521-4-git-send-email-ahaslam@baylibre.com> (raw)
In-Reply-To: <1455023751-32521-1-git-send-email-ahaslam@baylibre.com>
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>
---
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
next prev parent reply other threads:[~2016-02-09 13:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 13:15 [RFC v11 0/3] Multiple intermediate states for genpd ahaslam
2016-02-09 13:15 ` [RFC v11 1/3] PM / Domains: Support for multiple states ahaslam
2016-02-09 15:38 ` Ulf Hansson
[not found] ` <CAKXjFTMzgy1gp5rG4N8UOKkoUa1qMzzrU2Vy7pNF8+FiNbinUQ@mail.gmail.com>
2016-02-10 8:08 ` Ulf Hansson
2016-02-10 9:25 ` Axel Haslam
2016-02-10 10:24 ` Ulf Hansson
2016-02-10 10:56 ` Axel Haslam
2016-02-09 13:15 ` [RFC v11 2/3] ARM: imx6: pm: declare pm domain latency on power_state struct ahaslam
2016-02-09 15:39 ` Ulf Hansson
2016-02-09 13:15 ` ahaslam [this message]
2016-02-09 15:41 ` [RFC v11 3/3] PM / Domains: remove old power on/off latencies Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455023751-32521-4-git-send-email-ahaslam@baylibre.com \
--to=ahaslam@baylibre.com \
--cc=ahaslam+renesas@baylibre.com \
--cc=bcousson@baylibre.com \
--cc=geert@linux-m68k.org \
--cc=khilman@baylibre.com \
--cc=lina.iyer@linaro.org \
--cc=linux-pm@vger.kernel.org \
--cc=mtitinger@baylibre.com \
--cc=rjw@rjwysocki.net \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox