diff mbox

[RFC,15/27] PM / Domains: Add next_wakeup to device's timing data

Message ID 1447799871-56374-16-git-send-email-lina.iyer@linaro.org
State New
Headers show

Commit Message

Lina Iyer Nov. 17, 2015, 10:37 p.m. UTC
Allow devices that know when their next wakeup event is, to record save
it as part of timing data. A genpd governor may use this data to
determine if suspending the domain is going to affect the QoS of its
devices.

Signed-off-by: Lina Iyer <lina.iyer@linaro.org>

---
 include/linux/pm_domain.h | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.1.4

--
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

Comments

Kevin Hilman Nov. 19, 2015, 10:19 p.m. UTC | #1
Lina Iyer <lina.iyer@linaro.org> writes:

> Allow devices that know when their next wakeup event is, to record save

> it as part of timing data. A genpd governor may use this data to

> determine if suspending the domain is going to affect the QoS of its

> devices.

>

> Signed-off-by: Lina Iyer <lina.iyer@linaro.org>

> ---

>  include/linux/pm_domain.h | 2 ++

>  1 file changed, 2 insertions(+)

>

> diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h

> index f1329ea..9ac089d 100644

> --- a/include/linux/pm_domain.h

> +++ b/include/linux/pm_domain.h

> @@ -16,6 +16,7 @@

>  #include <linux/of.h>

>  #include <linux/notifier.h>

>  #include <linux/spinlock.h>

> +#include <linux/ktime.h>

>  

>  /* Defines used for the flags field in the struct generic_pm_domain */

>  #define GENPD_FLAG_PM_CLK	(1U << 0) /* PM domain uses PM clk */

> @@ -104,6 +105,7 @@ struct gpd_timing_data {

>  	s64 effective_constraint_ns;

>  	bool constraint_changed;

>  	bool cached_stop_ok;

> +	ktime_t next_wakeup;

>  };


The addition of a new field should be combined with the patch that uses
it (e.g. PATCH 16/27)

Kevin
--
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 mbox

Patch

diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index f1329ea..9ac089d 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -16,6 +16,7 @@ 
 #include <linux/of.h>
 #include <linux/notifier.h>
 #include <linux/spinlock.h>
+#include <linux/ktime.h>
 
 /* Defines used for the flags field in the struct generic_pm_domain */
 #define GENPD_FLAG_PM_CLK	(1U << 0) /* PM domain uses PM clk */
@@ -104,6 +105,7 @@  struct gpd_timing_data {
 	s64 effective_constraint_ns;
 	bool constraint_changed;
 	bool cached_stop_ok;
+	ktime_t next_wakeup;
 };
 
 struct pm_domain_data {