summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLina Iyer <lina.iyer@linaro.org>2016-10-14 19:47:50 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-10-21 22:20:07 +0200
commit405f7226014093a2809f27ba32a8230e770ac876 (patch)
tree3be18d857524e1466cbc296dbb1dd83329f44a37 /include
parentPM / Domains: Make genpd state allocation dynamic (diff)
downloadlinux-405f7226014093a2809f27ba32a8230e770ac876.tar.xz
linux-405f7226014093a2809f27ba32a8230e770ac876.zip
PM / Domains: Add residency property to genpd states
Residency of a domain's idle state indicates that the minimum idle time for the domain's idle state to be beneficial for power. Add the parameter to the state node. Future patches, will use the residency value in the genpd governor to determine if it is worth while to enter an idle state. Signed-off-by: Lina Iyer <lina.iyer@linaro.org> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pm_domain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index de1d8f331b03..f4492eb71701 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -38,6 +38,7 @@ struct gpd_dev_ops {
struct genpd_power_state {
s64 power_off_latency_ns;
s64 power_on_latency_ns;
+ s64 residency_ns;
};
struct generic_pm_domain {