From patchwork Tue Nov 17 22:37:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 7642901 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 33EC2C05CA for ; Tue, 17 Nov 2015 22:39:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 68EE120523 for ; Tue, 17 Nov 2015 22:39:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A0CC12051F for ; Tue, 17 Nov 2015 22:39:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932545AbbKQWiu (ORCPT ); Tue, 17 Nov 2015 17:38:50 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36729 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932574AbbKQWit (ORCPT ); Tue, 17 Nov 2015 17:38:49 -0500 Received: by pacdm15 with SMTP id dm15so22082052pac.3 for ; Tue, 17 Nov 2015 14:38:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B1QQxI4qOkiUclmWGXciKLkbAd5sGHwq6LzGxcB1Ttk=; b=uCFqy47iNmMTsHu5vtdQGM0CmXo2xex1sUmV7xMugM2Q1l6DAoDUG6NsP5Tg++aT1g 8PBDZ7YvUH7sc1SQyCdqJuI4RlcDvHB2Q5AnORVUu4WucWgPEb8GAhKO5DlpIG97P73A FylrsGSdtLpfjxSdUOsYe8EL6DnYcGvc/QAngJdZuzwtjd0BRz6W0rWcwSGdqcvqiA2C fQNiRiVduOC8iMYAv/hqHsO/xgCKtuvoEFQZend44221WBC2N1qtfLnMAj7nDtrtBZCw OgvCPGaWQjar+1ikOS6tyKfQcrtR+ofJqFxKT36fl68wcPnOeEcM6GbEW6dCgZceL2tW J9Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B1QQxI4qOkiUclmWGXciKLkbAd5sGHwq6LzGxcB1Ttk=; b=TKGZgN1NC/j6jgqB34HL1I8l25DfLbVisij9rj0U5MBAKwa8Sr9q9BuaIPNKthLy+r zfNByOktBV0QLj99UMhS5iXc0E+MhhTKSa5DMpkW/OSc+Jnh7V0S3XCXrCPncy0xwD3E 7nH/GTSqaAexEMrHjrgVnfV4Ch1Ic4nLTUxqFuDBv4Q3iU+U/uX5kDeSpEXHV6f0zvVc Pf4E7KVQFKWHw2gKDhiA34NbLbjiLW1AvvhAdT/W6qZT5UWoESvdhMymRM5Y6erzJXid U1UhAedh/tyDeLmCDnINFu3Cyq75b11+Bhn00e2oRFRKrTF1DdZDo+Af4HqAxbm482gv e8ng== X-Gm-Message-State: ALoCoQlOu4Ey0UNyOBeDELlM1Ge0wHN9kBF4bmQMocgXyUjpj3NZphrc2Uz374GhT/28RyumLyod X-Received: by 10.66.66.166 with SMTP id g6mr66017704pat.152.1447799928959; Tue, 17 Nov 2015 14:38:48 -0800 (PST) Received: from ubuntu.localdomain ([8.42.77.226]) by smtp.gmail.com with ESMTPSA id hy1sm14875199pbb.63.2015.11.17.14.38.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 14:38:47 -0800 (PST) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@linaro.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: 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, Lina Iyer Subject: [PATCH RFC 15/27] PM / Domains: Add next_wakeup to device's timing data Date: Tue, 17 Nov 2015 15:37:39 -0700 Message-Id: <1447799871-56374-16-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> References: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }; struct pm_domain_data {