From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lina Iyer Subject: Re: [PATCH RFC 15/27] PM / Domains: Add next_wakeup to device's timing data Date: Fri, 20 Nov 2015 08:58:36 -0700 Message-ID: <20151120155836.GB30342@linaro.org> References: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> <1447799871-56374-16-git-send-email-lina.iyer@linaro.org> <7h8u5ttywi.fsf@deeprootsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Received: from mail-pa0-f42.google.com ([209.85.220.42]:34336 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760087AbbKTP6j (ORCPT ); Fri, 20 Nov 2015 10:58:39 -0500 Received: by padhx2 with SMTP id hx2so120179634pad.1 for ; Fri, 20 Nov 2015 07:58:39 -0800 (PST) Content-Disposition: inline In-Reply-To: <7h8u5ttywi.fsf@deeprootsystems.com> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Kevin Hilman Cc: ulf.hansson@linaro.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, geert@linux-m68k.org, k.kozlowski@samsung.com, msivasub@codeaurora.org, agross@codeaurora.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, mtitinger@baylibre.com On Thu, Nov 19 2015 at 15:19 -0700, Kevin Hilman wrote: >Lina Iyer 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 >> --- >> 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 >> #include >> #include >> +#include >> >> /* 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) > Okay. Will do. >Kevin