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: 56893 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2218384lbb; Tue, 17 Nov 2015 14:39:19 -0800 (PST) X-Received: by 10.66.179.6 with SMTP id dc6mr67980210pac.67.1447799931171; Tue, 17 Nov 2015 14:38:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ax2si60766904pbd.123.2015.11.17.14.38.50; Tue, 17 Nov 2015 14:38:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932584AbbKQWiu (ORCPT + 11 others); Tue, 17 Nov 2015 17:38:50 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:35074 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932545AbbKQWit (ORCPT ); Tue, 17 Nov 2015 17:38:49 -0500 Received: by pacej9 with SMTP id ej9so22076067pac.2 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=iGY8IImTXZbkMguiFMUP4G6Eyqb94TPG6rVzqYQSuFyewpcYOjLTq+5udw4NuV28pb gArkTuRKrkzFmePqVyYs4n5o7lJVyE6+5b4q+yu6RqezrILKP3A8cfwhH0wUdfxc3Clw asGXZYzgdTdB1wI5aPXrkJqzbWtor43jYU+gbGtKPfHznUMx3IvF0emoaDCWQr2BrToy +31rQNRJqZWYP5CKcI3t80bAVYdPgOLsSIVzX40AJ8AQ/hczdvbLaMKkz6wsvLEHIIAz YRwNmU4JfQ/jw9ZNj+z7D1rooHSlxr+AyaQlnyVPO0YXRHKVi8GuOD/Q41WenGpygROL kcaw== X-Gm-Message-State: ALoCoQldu598IQ5k8oHh7abuSzVaBaw8n8Gcyz7P5481Xf2L8G+GIc1+j1FuPrEbanEA4TUACMUL 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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(+) -- 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 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 {