]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PM / Domains: Add residency property to genpd states
authorLina Iyer <lina.iyer@linaro.org>
Fri, 14 Oct 2016 17:47:50 +0000 (10:47 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Oct 2016 20:20:07 +0000 (22:20 +0200)
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>
include/linux/pm_domain.h

index de1d8f331b035e6e0d862b9eca01a05c43fd21e8..f4492eb71701e9f60aa13271ceed603bd6625864 100644 (file)
@@ -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 {