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: 7643411 Return-Path: X-Original-To: patchwork-linux-arm@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 97188BF90C for ; Tue, 17 Nov 2015 22:54:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF116205B5 for ; Tue, 17 Nov 2015 22:54:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EB3DE2058A for ; Tue, 17 Nov 2015 22:54:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zyp6c-0004II-S1; Tue, 17 Nov 2015 22:52:06 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zyou4-0005ah-3F for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 22:39:10 +0000 Received: by pacdm15 with SMTP id dm15so22082049pac.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=Pnwhkq4xKoj8g2EZSrOXTj1+nyx+Vrxm4qd4ewFccUFWj9cbTvwN5d348C2Qm/OfG/ k5d0RKb3bMQoLUMvP+H8XjpJct8n22NYIaaF5R8a+aOnVxYjT5oJ3BDZ5jQZblFL8aed BFCSMz4f7WJfZRpQ4UGFCOcvAtC/jFb/QEtE89tn1fuTJYBuw2nc9avloKAKImvBXO7r 1ggZ1JYJKw8wAOAbXCbVoYhhV4SD+yKRWBAflxSHuEqdiOu4ggqxBaV53VacceBNCqbZ sqlBFOFKXLYzKAwrOoZ8RmVA4b3l9IHgpe4ERI4bcx7VbJGzvHyX5tG9h1GRPDT5oNP2 NXjA== X-Gm-Message-State: ALoCoQmnWMJvjUccYO/PzKvIlhlhd6zDqG6wyzLiuw/CD4k6xrzgbaJmnUlZXHuQOPjQlS8Sh64f 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_143908_379265_F75844EA X-CRM114-Status: GOOD ( 11.97 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: k.kozlowski@samsung.com, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, msivasub@codeaurora.org, geert@linux-m68k.org, Lina Iyer , agross@codeaurora.org, mtitinger@baylibre.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,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 {